fix cssSourceMap

This commit is contained in:
Pooya Parsa 2017-08-20 13:08:38 +04:30
parent 75a845e5c7
commit 086a642332

View File

@ -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)