refactor: disable extractCSS in dev due to plugin not supports HMR

This commit is contained in:
Clark Du 2018-03-21 21:36:52 +08:00
parent df939be712
commit 8beb1b3525
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
1 changed files with 4 additions and 0 deletions

View File

@ -174,5 +174,9 @@ Options.from = function (_options) {
options.generate.fallback = '404.html'
}
// TODO: remove when mini-css-extract-plugin supports HMR
if (options.dev) {
options.build.extractCSS = false
}
return options
}