Created
January 6, 2017 13:18
-
-
Save dannypule/fe3a1bbcb86eff16e99dc13715390a2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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