mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Use default is option un given
This commit is contained in:
parent
e9740e4e27
commit
f40dfbaeee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user