mt-yd-ui/vue.config.js

24 wiersze
493 B
JavaScript
Czysty Zwykły widok Historia

2022-08-02 08:48:23 +08:00
/**
* 配置参考: https://cli.vuejs.org/zh/config/
*/
module.exports = {
publicPath: 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')
},
productionSourceMap: false,
devServer: {
open: true,
port: 8001,
overlay: {
errors: true,
warnings: true
}
}
}