You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
488 B
22 lines
488 B
/**
|
|
* 配置参考: https://cli.vuejs.org/zh/config/
|
|
*/
|
|
module.exports = {
|
|
baseUrl: process.env.NODE_ENV === 'production' ? './' : '/',
|
|
productionSourceMap: false,
|
|
devServer: {
|
|
open: true,
|
|
port: 8001,
|
|
overlay: {
|
|
errors: true,
|
|
warnings: true
|
|
}
|
|
},
|
|
chainWebpack: (config) => {
|
|
config.module.rule('vue').use('vue-loader').loader('vue-loader')
|
|
.tap(options => {
|
|
options.prettify = false // 关闭
|
|
return options
|
|
})
|
|
}
|
|
}
|
|
|