ensl_gathers/brunch-config.js
2016-04-19 00:59:05 +01:00

66 lines
1.3 KiB
JavaScript

exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: {
"app.js": /^(app)/,
"vendor.js": /^(vendor|node_modules)/
}
},
stylesheets: {
joinTo: {
"app.css": /^(app|vendor|node_modules)/
}
},
templates: {
joinTo: "app.js"
}
},
conventions: {
// This option sets where we should place non-css and non-js assets in.
assets: /^app\/images/
},
paths: {
// Dependencies and current project directories to watch
watched: [
"app/javascripts",
"app/stylesheets",
"vendor"
]
},
// Configure your plugins
plugins: {
babel: {
presets: ["es2015", "react"],
// Do not use ES6 compiler in vendor code
ignore: [/vendor/]
}
},
// Default behaviour.
// modules: {
// autoRequire: {
// 'app.js': ['app']
// }
// },
npm: {
enabled: true,
styles: {
"bootstrap-solarized": ["bootstrap-solarized-dark.css"]
},
whitelist: ["react", "react-dom", "jquery", "lodash",
"react-autolink", "react-dom", "react-emoji", "howler",
"bootstrap", "perfect-scrollbar"],
globals: {
"_": "lodash",
"jQuery": "jquery",
"$": "jquery"
}
},
notifications: true
};