mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 22:51:02 +00:00
temporary disable build.config.js
This commit is contained in:
parent
8c04f5d8a6
commit
496869045b
@ -48,9 +48,11 @@ module.exports = class Builder {
|
|||||||
// Stop watching on nuxt.close()
|
// Stop watching on nuxt.close()
|
||||||
if (this.options.dev) {
|
if (this.options.dev) {
|
||||||
this.nuxt.hook('close', () => this.unwatch())
|
this.nuxt.hook('close', () => this.unwatch())
|
||||||
} else {
|
|
||||||
this.nuxt.hook('build:done', () => this.generateConfig())
|
|
||||||
}
|
}
|
||||||
|
// else {
|
||||||
|
// TODO: enable again when unsafe concern resolved.(common/options.js:42)
|
||||||
|
// this.nuxt.hook('build:done', () => this.generateConfig())
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
get plugins() {
|
get plugins() {
|
||||||
|
@ -137,10 +137,10 @@ Options.modes = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Options.unsafeKeys = [
|
// Options.unsafeKeys = [
|
||||||
'rootDir', 'srcDir', 'buildDir', 'modulesDir', 'cacheDir', 'nuxtDir',
|
// 'rootDir', 'srcDir', 'buildDir', 'modulesDir', 'cacheDir', 'nuxtDir',
|
||||||
'nuxtAppDir', 'build', 'generate', 'router.routes', 'appTemplatePath'
|
// 'nuxtAppDir', 'build', 'generate', 'router.routes', 'appTemplatePath'
|
||||||
]
|
// ]
|
||||||
|
|
||||||
Options.defaults = {
|
Options.defaults = {
|
||||||
mode: 'universal',
|
mode: 'universal',
|
||||||
|
Loading…
Reference in New Issue
Block a user