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 options.debug = options.dev
} }
// cssSourceMap
if (options.cssSourceMap === undefined) {
options.cssSourceMap = options.dev
}
// Resolve mode // Resolve mode
let mode = options.mode let mode = options.mode
if (typeof mode === 'function') { if (typeof mode === 'function') {
@ -177,7 +182,7 @@ Options.defaults = {
build: { build: {
analyze: false, analyze: false,
extractCSS: false, extractCSS: false,
cssSourceMap: true, cssSourceMap: undefined,
ssr: undefined, ssr: undefined,
publicPath: '/_nuxt/', publicPath: '/_nuxt/',
filenames: { filenames: {