mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +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 --
|
||||
if (this.options.build.extractCSS) {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user