Skip to content

Commit

Permalink
Set allChunks: true by default (close #1110) (#1149)
Browse files Browse the repository at this point in the history
* `allChunks: true` by default

close #1110

* update wording.
  • Loading branch information
LinusBorg authored Dec 9, 2017
1 parent 44ca398 commit 5751131
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions template/build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ const webpackConfig = merge(baseWebpackConfig, {
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css'),
// set the following option to `true` if you want to extract CSS from
// codesplit chunks into this main css file as well.
// This will result in *all* of your app's CSS being loaded upfront.
allChunks: false,
// Setting the following option to `false` will not extract CSS from codesplit chunks.
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
allChunks: true,
}),
// Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped.
Expand Down

0 comments on commit 5751131

Please sign in to comment.