Skip to content

Commit

Permalink
fix(build): only modify css extraction if its enabled
Browse files Browse the repository at this point in the history
close #1378
  • Loading branch information
yyx990803 committed May 28, 2018
1 parent 023e022 commit 9a4159d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = (api, { entry, name }, options) => {
const config = api.resolveChainableWebpackConfig()

// adjust css output name so they write to the same file
if (options.css.extract !== false) {
if (config.plugins.has('extract-css')) {
config
.plugin('extract-css')
.tap(args => {
Expand Down

0 comments on commit 9a4159d

Please sign in to comment.