Skip to content

Commit cf408f2

Browse files
LLawlightLinusBorg
authored andcommitted
fix the config contradiction (vuejs-templates#1014)
1 parent 0c52d35 commit cf408f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/build/webpack.prod.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ const webpackConfig = merge(baseWebpackConfig, {
4747
// Compress extracted CSS. We are using this plugin so that possible
4848
// duplicated CSS from different components can be deduped.
4949
new OptimizeCSSPlugin({
50-
cssProcessorOptions: {
51-
safe: true
52-
}
50+
cssProcessorOptions: config.build.productionSourceMap
51+
? { safe: true, map: { inline: false } }
52+
: { safe: true }
5353
}),
5454
// generate dist index.html with correct asset hash for caching.
5555
// you can customize output by editing /index.html

0 commit comments

Comments
 (0)