Skip to content

Instantly share code, notes, and snippets.

@jakubpawlowicz
Created June 6, 2016 11:04
Show Gist options
  • Save jakubpawlowicz/42d455e529720ec41a9f570dd2491d3b to your computer and use it in GitHub Desktop.
Save jakubpawlowicz/42d455e529720ec41a9f570dd2491d3b to your computer and use it in GitHub Desktop.
Brunch setup to output more than one CSS and JS file
exports.config = {
files: {
javascripts: {
joinTo: {
'js/app.js': [
'web/static/js/vendor/**/*.js',
'web/static/js/app/*.js'
],
'js/dashboard.js': [
'web/static/js/vendor/**/*.js',
'web/static/js/dashboard/*.js'
]
}
},
stylesheets: {
joinTo: {
'css/app.css': [
'web/static/css/vendor/**/*.css',
'web/static/css/shared/*.css',
'web/static/css/app/*.css'
],
'css/dashboard.css': [
'web/static/css/vendor/**/*.css',
'web/static/css/shared/*.css',
'web/static/css/dashboard/*.css'
]
}
}
}
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment