mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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()
|
||||
if (this.options.dev) {
|
||||
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() {
|
||||
|
@ -137,10 +137,10 @@ Options.modes = {
|
||||
}
|
||||
}
|
||||
|
||||
Options.unsafeKeys = [
|
||||
'rootDir', 'srcDir', 'buildDir', 'modulesDir', 'cacheDir', 'nuxtDir',
|
||||
'nuxtAppDir', 'build', 'generate', 'router.routes', 'appTemplatePath'
|
||||
]
|
||||
// Options.unsafeKeys = [
|
||||
// 'rootDir', 'srcDir', 'buildDir', 'modulesDir', 'cacheDir', 'nuxtDir',
|
||||
// 'nuxtAppDir', 'build', 'generate', 'router.routes', 'appTemplatePath'
|
||||
// ]
|
||||
|
||||
Options.defaults = {
|
||||
mode: 'universal',
|
||||
|
Loading…
Reference in New Issue
Block a user