mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
fix: extractCSS:true and dev:false break building
This commit is contained in:
parent
3481ceb059
commit
e116ff5a71
@ -130,7 +130,9 @@ module.exports = 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