Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.config = {
- // See http://brunch.io/#documentation for docs.
- files: {
- javascripts: {
- joinTo: {
- "js/app.js": /^(web\/static\/js)/,
- "js/vendor.js": /^(web\/static\/vendor\/js)|(deps)/
- },
- order: {
- before: [
- 'web/static/vendor/js/lodash.js',
- 'web/static/vendor/js/angular.js',
- 'web/static/vendor/js/angular-route.js',
- 'web/static/vendor/js/angular-animate.js',
- 'web/static/vendor/js/jquery.js',
- 'web/static/vendor/js/bootstrap.js',
- 'web/static/js/main.js',
- 'web/static/js/clock_controller.js'
- ]
- }
- },
- stylesheets: {
- joinTo: {
- "css/app.css": /(web\/static\/css)/,
- 'css/vendor.css': /(web\/static\/vendor\/css)/,
- },
- },
- // 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 "/web/static/assets". Files in this directory
- // will be copied to `paths.public`, which is "priv/static" by default.
- assets: /^(web\/static\/assets)/
- },
- // Phoenix paths configuration
- paths: {
- // Dependencies and current project directories to watch
- watched: [
- "web/static",
- "test/static"
- ],
- // Where to compile files to
- public: "priv/static"
- },
- // Configure your plugins
- plugins: {
- babel: {
- // Do not use ES6 compiler in vendor code
- ignore: [/web\/static\/vendor/]
- }
- },
- modules: {
- definition: false,
- wrapper: false ,
- autoRequire: {
- "js/app.js": ["web/static/js/app"]
- }
- },
- npm: {
- enabled: true,
- whitelist: ["phoenix", "phoenix_html"]
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement