const NODE_ENV = process.env.NODE_ENV; module.exports = function () { let externals = {} if(NODE_ENV==='production'){ externals = { intact : { commonjs2: 'intact', commonjs: 'intact', amd: 'intact', root: 'Intact' // indicates global variable } } } return { externals : externals, resolve: { alias: { intact$: "intact-vue/dist/intact.vue.js" } }, ksr: { stylTheme: 'node_modules/kpc/styles/themes/ksyun/index.styl' //默认是`src/themes/default.styl` } } };