Disable cssSourceMap for production by default

Prevents build environment path leaks and reduce js files size (as vue-loader inlines some parts)
This commit is contained in:
Pooya Parsa 2017-08-19 16:40:55 +04:30
parent 85e7641bae
commit 278180b4fe

View File

@ -121,6 +121,11 @@ Options.from = function (_options) {
options.debug = options.dev
}
// cssSourceMap
if (options.cssSourceMap === undefined) {
options.cssSourceMap = options.dev
}
// Resolve mode
let mode = options.mode
if (typeof mode === 'function') {
@ -177,7 +182,7 @@ Options.defaults = {
build: {
analyze: false,
extractCSS: false,
cssSourceMap: true,
cssSourceMap: undefined,
ssr: undefined,
publicPath: '/_nuxt/',
filenames: {