Changeset View
Changeset View
Standalone View
Standalone View
assets/brunch-config.js
- This file was moved from brunch-config.js.
Show All 26 Lines | files: { | ||||
}, | }, | ||||
templates: { | templates: { | ||||
joinTo: "js/app.js" | joinTo: "js/app.js" | ||||
} | } | ||||
}, | }, | ||||
conventions: { | conventions: { | ||||
// This option sets where we should place non-css and non-js assets in. | // 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 | // By default, we set this to "/assets/static". Files in this directory | ||||
// will be copied to `paths.public`, which is "priv/static" by default. | // will be copied to `paths.public`, which is "priv/static" by default. | ||||
assets: /^(web\/static\/assets)/ | assets: /^(static)/ | ||||
}, | }, | ||||
// Phoenix paths configuration | // Phoenix paths configuration | ||||
paths: { | paths: { | ||||
// Dependencies and current project directories to watch | // Dependencies and current project directories to watch | ||||
watched: [ | watched: ["static", "css", "js", "js/widgets", "vendor"], | ||||
"web/static", | |||||
"test/static" | |||||
], | |||||
// Where to compile files to | // Where to compile files to | ||||
public: "priv/static" | public: "../priv/static" | ||||
}, | }, | ||||
// Configure your plugins | // Configure your plugins | ||||
plugins: { | plugins: { | ||||
babel: { | babel: { | ||||
// Do not use ES6 compiler in vendor code | // Do not use ES6 compiler in vendor code | ||||
ignore: [/web\/static\/vendor/] | ignore: [/vendor/] | ||||
}, | }, | ||||
copycat: { | copycat: { | ||||
fonts: ["node_modules/bootstrap/fonts"] | fonts: ["node_modules/bootstrap/fonts"] | ||||
} | } | ||||
}, | }, | ||||
modules: { | modules: { | ||||
autoRequire: { | autoRequire: { | ||||
"js/app.js": ["web/static/js/app"] | "js/app.js": ["js/app"] | ||||
} | } | ||||
}, | }, | ||||
npm: { | npm: { | ||||
enabled: true, | enabled: true, | ||||
globals: { | globals: { | ||||
$: "jquery", | $: "jquery", | ||||
jQuery: "jquery", | jQuery: "jquery", | ||||
bootstrap: "bootstrap" | bootstrap: "bootstrap" | ||||
} | } | ||||
} | } | ||||
}; | }; |