douyin/vue.config.js
2019-08-03 23:54:03 +08:00

25 lines
593 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: {},
devServer: {
open: true,
host: '0.0.0.0',
port: 8863,
https: false,
hotOnly: false,
},
}