Skip to content

Instantly share code, notes, and snippets.

@wapcrazut
Created December 19, 2019 11:46
Show Gist options
  • Save wapcrazut/c8352a6339a37145708aba2ae04d57f1 to your computer and use it in GitHub Desktop.
Save wapcrazut/c8352a6339a37145708aba2ae04d57f1 to your computer and use it in GitHub Desktop.
Multiple Webpack file output
module.exports = {
//...
entry: {
'build/application/bundle': './src/application', // will be ./build/application/bundle.js,
'build/library/bundle': './src/library`'// will be ./build/library/bundle.js,
'build/assets/app.core': './src/assets/theme/app.core.scss`'// Should be ./build/assets/app.core.css,
},
output: {
path: path.resolve(__dirname, './'),
filename: '[name].[ext]'
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment