Skip to content

Instantly share code, notes, and snippets.

@dannypule
Created January 6, 2017 13:18
Show Gist options
  • Save dannypule/fe3a1bbcb86eff16e99dc13715390a2a to your computer and use it in GitHub Desktop.
Save dannypule/fe3a1bbcb86eff16e99dc13715390a2a to your computer and use it in GitHub Desktop.
var AssetsPlugin = require('assets-webpack-plugin');
...
output: {
path: helpers.root('dist'), // sets output folder to 'dist'
publicPath: '/', // tells webpack where we'll host the generated bundle
filename: '[name]_[hash].js', // output filename - e.g app.js or vendor.js
chunkFilename: '[id].chunk.js' //??
},
...
plugins: [
new AssetsPlugin({
filename: 'dist/assets.json',
prettyPrint: true
})
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment