mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
remove NUXT_APP_DIR
This commit is contained in:
parent
59d7e786aa
commit
0e5911269a
8
index.js
8
index.js
@ -17,12 +17,8 @@ const Core = require('./dist/core.js')
|
||||
Object.assign(exports, Core.default || Core)
|
||||
|
||||
// Require Builder
|
||||
const Builder = require('./dist/builder')
|
||||
// TODO: conditionally do this when builder available
|
||||
const Builder = require('./dist/builder.js')
|
||||
Object.assign(exports, Builder.default || Builder)
|
||||
|
||||
// Use special env flag to specify app dir without modify builder
|
||||
if (!process.env.NUXT_APP_DIR) {
|
||||
process.env.NUXT_APP_DIR = path.resolve(__dirname, 'lib/app')
|
||||
}
|
||||
|
||||
module.exports = Object.assign(Core, Builder)
|
||||
|
Loading…
Reference in New Issue
Block a user