douyin/vue.config.js
2019-08-03 03:04:48 +08:00

18 lines
458 B
JavaScript
Executable File

// vue.config.js
const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
// 选项...
publicPath: isProduction ? '' : '',
assetsDir: isProduction ? './' : './',
// configureWebpack: config => {
// config.externals = {
// "vue": "Vue",
// "vue-router": "VueRouter",
// }
// },
// 是否为生产环境构建生成 source map
productionSourceMap: false,
css: {},
}