mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
31 lines
766 B
JavaScript
31 lines
766 B
JavaScript
/*!
|
|
* Nuxt.js
|
|
* (c) 2016-2017 Chopin Brothers
|
|
* Released under the MIT License.
|
|
*/
|
|
|
|
const path = require('path')
|
|
|
|
process.noDeprecation = true
|
|
|
|
// Node Source Map Support
|
|
// https://github.com/evanw/node-source-map-support
|
|
require('source-map-support').install();
|
|
|
|
// Require Core
|
|
const Core = require('./dist/core.js')
|
|
// Object.assign(exports, Core.default || Core)
|
|
|
|
// Require Builder
|
|
const Builder = require('./dist/builder')
|
|
// Object.assign(exports, Builder.default || Builder)
|
|
|
|
// FIXME
|
|
Object.assign(Core.default || Core, Builder.default || Builder)
|
|
module.exports = Core.default || Core
|
|
|
|
// 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')
|
|
}
|