Created
September 12, 2017 22:35
-
-
Save skota/7a6404117679859bc2f19c9710cc9e3a to your computer and use it in GitHub Desktop.
brunch config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: { | |
"js/app.js": /^(js)/, | |
"js/vendor" : [ | |
"node_modules/phoenix/priv/static/phoenix.js", | |
"node_modules/phoenix_html/priv/static/phoenix_html.js", | |
"node_modules/moment/moment.js", | |
"node_modules/process/browser.js" | |
] | |
}, | |
order: { | |
before: [ | |
"js/jquery.min.js", | |
"js/bootstrap.min.js", | |
"js/jquery.slimscroll.min.js", | |
"js/jquery.blockui.min.js", | |
"js/jquery.validate.min.js", | |
"js/additional-methods.min.js", | |
"js/select2.full.js", | |
"js/login.min.js" | |
] | |
} | |
}, | |
stylesheets: { | |
joinTo: { | |
"css/app.css": /^(css)/ | |
}, | |
order: { | |
before: [ | |
"css/bootstrap.min.css", | |
"css/select2.min.css", | |
"/css/daterangepicker.min.css", | |
"/css/morris.css", | |
"/css/jqvmap.css", | |
"css/components.min.css", | |
"css/plugins.min.css", | |
"css/blue.min.css", | |
"/css/layout.min.css", | |
"/css/default.min.css", | |
"/css/custom.min.css" | |
] | |
} | |
}, | |
templates: { | |
joinTo: "js/app.js" | |
} | |
}, | |
conventions: { | |
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: { | |
babel: { | |
// Do not use ES6 compiler in vendor code | |
ignore: [/vendor/] | |
} | |
}, | |
modules: { | |
autoRequire: { | |
"js/app.js": ["js/app"], | |
"js/vendor.js": ["js/vendor"] | |
} | |
}, | |
npm: { | |
enabled: true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment