diff --git a/lib/nuxt.js b/lib/nuxt.js index 5b841cdc92..a2c812ea17 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -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 : this.dir) + this.srcDir = (typeof options.srcDir === 'string' && options.srcDir ? resolve(this.dir, 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