Nuxt/index.js

28 lines
782 B
JavaScript
Raw Normal View History

2017-05-30 13:14:10 +00:00
/*!
* Nuxt.js
* (c) 2016-2017 Chopin Brothers
* Released under the MIT License.
*/
2017-01-11 21:18:23 +00:00
2017-06-16 12:42:45 +00:00
const path = require('path')
2017-03-24 01:15:13 +00:00
process.noDeprecation = true
2017-06-16 12:42:45 +00:00
// Node Source Map Support
// https://github.com/evanw/node-source-map-support
require('source-map-support').install();
const Core = require('./dist/core.js')
// ------------------------------------------------------------------
// Polyfill Builder into Core
const Builder = require('./dist/builder')
// Use special env flag to specify app dir without modify builder
if (!process.env.NUXT_APP_TEMPALTE_DIR) {
process.env.NUXT_APP_TEMPALTE_DIR = path.resolve(__dirname, 'app')
}
Object.assign(Core, Builder)
// ------------------------------------------------------------------
2017-01-11 21:18:23 +00:00
2017-06-16 12:42:45 +00:00
module.exports = Core.default ? Core.default : Core