From 1387589ac9dbfe1f8d45073d23d30dca46a9c7bd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 28 Apr 2019 22:03:03 +0300 Subject: [PATCH] fixed build speed --- build/webpack.base.conf.js | 5 +++++ build/webpack.dev.conf.js | 1 + 2 files changed, 6 insertions(+) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 6f6e785b..f8968966 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -20,6 +20,11 @@ module.exports = { publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath, filename: '[name].js' }, + optimization: { + splitChunks: { + chunks: 'all' + } + }, resolve: { extensions: ['.js', '.vue'], modules: [ diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 80b87ae8..159572ba 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -14,6 +14,7 @@ module.exports = merge(baseWebpackConfig, { module: { rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) }, + mode: 'development', // eval-source-map is faster for development devtool: '#eval-source-map', plugins: [