Browse Source

set allChunks:false

Pan 7 years ago
parent
commit
b15cdeaa1e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      build/webpack.prod.conf.js

+ 1 - 2
build/webpack.prod.conf.js

@@ -50,9 +50,8 @@ const webpackConfig = merge(baseWebpackConfig, {
50 50
       filename: utils.assetsPath('css/[name].[contenthash].css'),
51 51
       // Setting the following option to `false` will not extract CSS from codesplit chunks.
52 52
       // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
53
-      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
54 53
       // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
55
-      allChunks: true,
54
+      allChunks: false,
56 55
     }),
57 56
     // Compress extracted CSS. We are using this plugin so that possible
58 57
     // duplicated CSS from different components can be deduped.