1
0
Fork 0
management/front/dkha-web-sz-main/vue.config.js

25 lines
658 B
JavaScript
Raw Permalink Normal View History

2023-12-18 13:12:25 +08:00
/**
* 配置参考: https://cli.vuejs.org/zh/config/
*/
module.exports = {
baseUrl: process.env.NODE_ENV === 'production' ? './' : '/',
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.test(/\.svg$/)
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
},
// 默认打开eslint效验如果需要关闭设置成false即可
lintOnSave: false,
productionSourceMap: false,
devServer: {
open: true,
port: 8001,
overlay: {
errors: true,
warnings: true
}
}
}