@@ -2,74 +2,57 @@ exports.config = {
22 // See http://brunch.io/#documentation for docs.
33 files : {
44 javascripts : {
5- joinTo : "js/app.js"
6-
75 // To use a separate vendor.js bundle, specify two files path
8- // https ://github.com/brunch/brunch/blob/stable/ docs/config.md# files
6+ // http ://brunch.io/ docs/config#- files-
97 // joinTo: {
108 // "js/app.js": /^(web\/static\/js)/,
119 // "js/vendor.js": /^(web\/static\/vendor)|(deps)/
1210 // }
1311 //
1412 // To change the order of concatenation of files, explicitly mention here
15- // https://github.com/brunch/brunch/tree/master/docs#concatenation
1613 // order: {
1714 // before: [
1815 // "web/static/vendor/js/jquery-2.1.1.js",
1916 // "web/static/vendor/js/bootstrap.min.js"
2017 // ]
2118 // }
19+ joinTo : 'js/app.js' ,
2220 } ,
2321 stylesheets : {
24- joinTo : "css/app.css"
22+ joinTo : 'css/app.css' ,
23+ order : {
24+ // concat app.css last
25+ after : [ 'web/static/css/app.css' ] ,
26+ } ,
2527 } ,
26- templates : {
27- joinTo : "js/app.js"
28- }
28+ templates : { joinTo : 'js/app.js' } ,
2929 } ,
30-
3130 conventions : {
3231 // This option sets where we should place non-css and non-js assets in.
3332 // By default, we set this to "/web/static/assets". Files in this directory
3433 // will be copied to `paths.public`, which is "priv/static" by default.
35- assets : / ^ ( w e b \/ s t a t i c \/ a s s e t s ) /
34+ assets : / ^ ( w e b \/ s t a t i c \/ a s s e t s ) / ,
3635 } ,
37-
3836 // Phoenix paths configuration
3937 paths : {
4038 // Dependencies and current project directories to watch
41- watched : [
42- "web/static" ,
43- "test/static"
44- ] ,
45-
39+ watched : [ 'web/static' , 'test/static' ] ,
4640 // Where to compile files to
47- public : " priv/static"
41+ public : ' priv/static' ,
4842 } ,
49-
5043 // Configure your plugins
5144 plugins : {
5245 babel : {
46+ presets : [
47+ [
48+ 'env' ,
49+ { targets : { chrome : 52 } , modules : 'commonjs' , loose : true } ,
50+ ] ,
51+ ] ,
5352 // Do not use ES6 compiler in vendor code
54- ignore : [ / w e b \/ s t a t i c \/ v e n d o r / ]
53+ ignore : [ / w e b \/ s t a t i c \/ v e n d o r / ] ,
5554 } ,
56- elixirscript : {
57- inputFolder : "web/static/exjs" ,
58- outputFolder : "web/static/js" ,
59- mainModule : "Todo"
60- }
6155 } ,
62-
63- modules : {
64- autoRequire : {
65- "js/app.js" : [ "web/static/js/main" ]
66- }
67- } ,
68-
69- npm : {
70- enabled : true ,
71- // Whitelist the npm deps to be pulled in as front-end assets.
72- // All other deps in package.json will be excluded from the bundle.
73- whitelist : [ "phoenix" , "phoenix_html" ]
74- }
56+ modules : { autoRequire : { 'js/app.js' : [ 'web/static/js/app' ] } } ,
57+ npm : { enabled : true } ,
7558} ;
0 commit comments