72

parent 30620084
...@@ -27,7 +27,7 @@ const webpackConfig = merge(baseWebpackConfig, { ...@@ -27,7 +27,7 @@ const webpackConfig = merge(baseWebpackConfig, {
// filename: utils.assetsPath(env.versionTime+'/js/[name].[chunkhash].js'), // filename: utils.assetsPath(env.versionTime+'/js/[name].[chunkhash].js'),
// chunkFilename: utils.assetsPath(env.versionTime+'/js/[id].[chunkhash].js'), // chunkFilename: utils.assetsPath(env.versionTime+'/js/[id].[chunkhash].js'),
filename: utils.assetsPath('js/[name].[chunkhash].js'), filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') chunkFilename: utils.assetsPath('js/[name].[chunkhash].js')
}, },
plugins: [ plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html // http://vuejs.github.io/vue-loader/en/workflow/production.html
...@@ -112,7 +112,7 @@ const webpackConfig = merge(baseWebpackConfig, { ...@@ -112,7 +112,7 @@ const webpackConfig = merge(baseWebpackConfig, {
name: 'app', name: 'app',
async: 'vendor-async', async: 'vendor-async',
children: true, children: true,
minChunks: 3 minChunks: 5
}), }),
// copy custom static assets // copy custom static assets
...@@ -128,7 +128,6 @@ const webpackConfig = merge(baseWebpackConfig, { ...@@ -128,7 +128,6 @@ const webpackConfig = merge(baseWebpackConfig, {
if (config.build.productionGzip) { if (config.build.productionGzip) {
const CompressionWebpackPlugin = require('compression-webpack-plugin') const CompressionWebpackPlugin = require('compression-webpack-plugin')
webpackConfig.plugins.push( webpackConfig.plugins.push(
new CompressionWebpackPlugin({ new CompressionWebpackPlugin({
asset: '[path].gz[query]', asset: '[path].gz[query]',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment