mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +00:00
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:
parent
85e7641bae
commit
278180b4fe
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user