mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
if srcDir not set, default to this.dir (rootDir)
This commit is contained in:
parent
df363e9770
commit
187fec3f32
@ -51,7 +51,7 @@ class Nuxt {
|
||||
// Env variables
|
||||
this.dev = this.options.dev
|
||||
this.dir = (typeof options.rootDir === 'string' && options.rootDir ? options.rootDir : process.cwd())
|
||||
this.srcDir = (typeof options.srcDir === 'string' && options.srcDir ? options.srcDir : process.cwd())
|
||||
this.srcDir = (typeof options.srcDir === 'string' && options.srcDir ? options.srcDir : this.dir)
|
||||
// If store defined, update store options to true
|
||||
if (fs.existsSync(join(this.srcDir, 'store', 'index.js'))) {
|
||||
this.options.store = true
|
||||
|
Loading…
Reference in New Issue
Block a user