1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/assets/brunch-config.js
2018-02-28 11:02:59 -05:00

71 lines
1.4 KiB
JavaScript

exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: {
"js/app.js": /^js/,
"js/vendor.js": /^(?!js)/,
},
},
stylesheets: {
joinTo: "css/app.css",
order: {
after: ["web/static/css/app.css"], // concat app.css last
},
},
templates: {
joinTo: "js/app.js",
},
},
conventions: {
// This option sets where we should place non-css and non-js assets in.
// By default, we set this to "/assets/static". Files in this directory
// will be copied to `paths.public`, which is "priv/static" by default.
assets: /^(static)/,
},
// Phoenix paths configuration
paths: {
// Dependencies and current project directories to watch
watched: ["static", "css", "js", "vendor"],
// Where to compile files to
public: "../priv/static",
},
// Configure your plugins
plugins: {
sass: {
mode: "native",
},
babel: {
plugins: [
"transform-object-rest-spread",
"transform-class-properties",
],
presets: [
[
"env", {
"browsers": ["> 5% in US"],
"useBuiltIns": true,
},
],
"es2015",
"react",
],
ignore: [/vendor/],
},
},
modules: {
autoRequire: {
"js/app.js": ["js/app"],
},
},
npm: {
enabled: true,
},
};