mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix: extractCSS:true and dev:false break building
This commit is contained in:
parent
34c1cad8cc
commit
190923e51a
@ -124,7 +124,9 @@ export default function webpackClientConfig() {
|
||||
|
||||
// CSS extraction
|
||||
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({
|
||||
filename: this.getFileName('css')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user