Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/webpack.config.js b/webpack.config.js
- index 4f0e5e5..d6f0479 100644
- --- a/webpack.config.js
- +++ b/webpack.config.js
- @@ -18,6 +18,15 @@ const plugins = [
- template: './src/ejs/index.ejs',
- title: 'React',
- }),
- + new webpack.NamedModulesPlugin(),
- + new webpack.optimize.CommonsChunkPlugin({
- + name: 'vendor',
- + minChunks: module => module.context && module.context.includes('node_modules'),
- + }),
- + new webpack.optimize.CommonsChunkPlugin({
- + name: 'manifest',
- + minChunks: Infinity,
- + }),
- ];
- if (DEBUG) {
- app.unshift(
- @@ -37,7 +46,7 @@ module.exports = {
- app,
- },
- output: {
- - filename: 'js/[name].bundle.js',
- + filename: 'js/[name].[chunkhash].bundle.js',
- path: path.resolve(__dirname, 'dist'),
- },
- module: {
Add Comment
Please, Sign In to add comment