72

parent 30620084
......@@ -27,7 +27,7 @@ const webpackConfig = merge(baseWebpackConfig, {
// filename: utils.assetsPath(env.versionTime+'/js/[name].[chunkhash].js'),
// chunkFilename: utils.assetsPath(env.versionTime+'/js/[id].[chunkhash].js'),
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
chunkFilename: utils.assetsPath('js/[name].[chunkhash].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
......@@ -112,7 +112,7 @@ const webpackConfig = merge(baseWebpackConfig, {
name: 'app',
async: 'vendor-async',
children: true,
minChunks: 3
minChunks: 5
}),
// copy custom static assets
......@@ -128,7 +128,6 @@ const webpackConfig = merge(baseWebpackConfig, {
if (config.build.productionGzip) {
const CompressionWebpackPlugin = require('compression-webpack-plugin')
webpackConfig.plugins.push(
new CompressionWebpackPlugin({
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