mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +00:00
fix: disable vue-style-loader when extractCSS
This commit is contained in:
parent
e051adbf0a
commit
da40bcf18b
@ -63,13 +63,6 @@ export default ({ isServer }) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Prepare vue-style-loader
|
|
||||||
// https://github.com/vuejs/vue-style-loader
|
|
||||||
loaders.unshift({
|
|
||||||
loader: 'vue-style-loader',
|
|
||||||
options: { sourceMap }
|
|
||||||
})
|
|
||||||
|
|
||||||
// -- With extractCSS --
|
// -- With extractCSS --
|
||||||
if (this.options.build.extractCSS) {
|
if (this.options.build.extractCSS) {
|
||||||
if (!isServer) {
|
if (!isServer) {
|
||||||
@ -83,6 +76,13 @@ export default ({ isServer }) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Prepare vue-style-loader
|
||||||
|
// https://github.com/vuejs/vue-style-loader
|
||||||
|
loaders.unshift({
|
||||||
|
loader: 'vue-style-loader',
|
||||||
|
options: { sourceMap }
|
||||||
|
})
|
||||||
}
|
}
|
||||||
return loaders
|
return loaders
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user