diff options
author | Wu Cheng-Han | 2016-10-20 17:23:11 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-20 17:23:11 +0800 |
commit | 0f4d712f91125c891112494b7c32e581043eae06 (patch) | |
tree | 2ff795d5b08f7927039f8c09c399e77737caebd2 | |
parent | c54013d9540dcf99452a59545b91f8ced5aa6500 (diff) |
Fix production webpack config for 7ebc84bec0bf8f6e1f28e5fb3e9e7449bd7a2347
-rw-r--r-- | webpack.production.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webpack.production.js b/webpack.production.js index f857c53c..82e52d17 100644 --- a/webpack.production.js +++ b/webpack.production.js @@ -18,7 +18,7 @@ module.exports = Object.assign({}, baseConfig, { }), new ExtractTextPlugin("[name].css"), new webpack.optimize.CommonsChunkPlugin({ - names: ["vendor", "public", "slide", "locale"], + names: ["cover", "index", "pretty", "slide", "vendor"], children: true, async: true, filename: '[name].js', @@ -38,25 +38,25 @@ module.exports = Object.assign({}, baseConfig, { }), new HtmlWebpackPlugin({ template: 'public/views/includes/header.ejs', - chunks: ['vendor', 'locale'], + chunks: ['vendor', 'cover'], filename: path.join(__dirname, 'public/views/build/cover-header.ejs'), inject: false }), new HtmlWebpackPlugin({ template: 'public/views/includes/scripts.ejs', - chunks: ['vendor', 'locale'], + chunks: ['vendor', 'cover'], filename: path.join(__dirname, 'public/views/build/cover-scripts.ejs'), inject: false }), new HtmlWebpackPlugin({ template: 'public/views/includes/header.ejs', - chunks: ['vendor', 'public'], + chunks: ['vendor', 'pretty'], filename: path.join(__dirname, 'public/views/build/pretty-header.ejs'), inject: false }), new HtmlWebpackPlugin({ template: 'public/views/includes/scripts.ejs', - chunks: ['vendor', 'public'], + chunks: ['vendor', 'pretty'], filename: path.join(__dirname, 'public/views/build/pretty-scripts.ejs'), inject: false }), |