mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix cssSourceMap
This commit is contained in:
parent
75a845e5c7
commit
086a642332
@ -64,6 +64,11 @@ Options.from = function (_options) {
|
||||
background: 'white'
|
||||
}, options.loadingIndicator)
|
||||
|
||||
// cssSourceMap
|
||||
if (options.build.cssSourceMap === undefined) {
|
||||
options.build.cssSourceMap = options.dev
|
||||
}
|
||||
|
||||
// Postcss
|
||||
// 1. Check if it is explicitly disabled by false value
|
||||
// ... Disable all postcss loaders
|
||||
@ -121,11 +126,6 @@ Options.from = function (_options) {
|
||||
options.debug = options.dev
|
||||
}
|
||||
|
||||
// cssSourceMap
|
||||
if (options.cssSourceMap === undefined) {
|
||||
options.cssSourceMap = options.dev
|
||||
}
|
||||
|
||||
// Apply mode preset
|
||||
let modePreset = Options.modes[options.mode || 'universal'] || Options.modes['universal']
|
||||
_.defaultsDeep(options, modePreset)
|
||||
|
Loading…
Reference in New Issue
Block a user