Skip to content

Commit 9a4159d

Browse files
committedMay 28, 2018
fix(build): only modify css extraction if its enabled
close #1378
1 parent 023e022 commit 9a4159d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/@vue/cli-service/lib/commands/build/resolveLibConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = (api, { entry, name }, options) => {
3131
const config = api.resolveChainableWebpackConfig()
3232

3333
// adjust css output name so they write to the same file
34-
if (options.css.extract !== false) {
34+
if (config.plugins.has('extract-css')) {
3535
config
3636
.plugin('extract-css')
3737
.tap(args => {

0 commit comments

Comments
 (0)
Please sign in to comment.