mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
fix: extractCSS:true and dev:false break building
This commit is contained in:
parent
d4f0a6f59a
commit
cf1fc9cb1c
@ -133,7 +133,9 @@ export default function webpackClientConfig() {
|
|||||||
|
|
||||||
// CSS extraction
|
// CSS extraction
|
||||||
const extractCSS = this.options.build.extractCSS
|
const extractCSS = this.options.build.extractCSS
|
||||||
if (extractCSS) {
|
// TODO: Temporary disabled in dev mode for fixing source maps
|
||||||
|
// (We need `source-map` devtool for *.css modules)
|
||||||
|
if (extractCSS && !this.options.dev) {
|
||||||
config.plugins.push(new ExtractTextPlugin(Object.assign({
|
config.plugins.push(new ExtractTextPlugin(Object.assign({
|
||||||
filename: this.getFileName('css')
|
filename: this.getFileName('css')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user