fix HMR for extractCSS on dev

This commit is contained in:
Pooya Parsa 2017-08-14 18:42:09 +04:30
parent 5d2429459a
commit f24d41e52b

View File

@ -58,7 +58,7 @@ export default function styleLoader (ext, loaders = [], isVueLoader = false) {
loader: 'resolve-url-loader'
}
if (this.options.build.extractCSS) {
if (this.options.build.extractCSS && !isVueLoader && !this.options.dev) {
return ExtractTextPlugin.extract({
fallback: vueStyleLoader,
use: [