Use default is option un given

This commit is contained in:
Sébastien Chopin 2017-01-24 20:25:56 +01:00
parent e9740e4e27
commit f40dfbaeee

View File

@ -28,7 +28,9 @@ if (typeof options.rootDir !== 'string') {
options.dev = false // Create production build when calling `nuxt build`
options.build = options.build || {}
options.build.analyze = analyzeBuild
if (analyzeBuild) {
options.build.analyze = analyzeBuild
}
console.log('[nuxt] Building...') // eslint-disable-line no-console
var nuxt = new Nuxt(options)