pms-aomei/vue.config.js

39 řádky
954 B
JavaScript
Surový Normální zobrazení Historie

2023-01-16 11:08:54 +08:00
/**
* 配置参考: https://cli.vuejs.org/zh/config/
*/
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
chainWebpack: (config) => {
config.module.rule('svg').exclude.add(resolve('src/icons')).end()
config.module
.rule('icons')
.test(/\.svg$/)
.include.add(resolve('src/icons'))
.end()
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
},
productionSourceMap: false,
devServer: {
open: true,
2023-05-25 14:15:27 +08:00
port: 9000,
2023-01-16 11:08:54 +08:00
overlay: {
errors: true,
warnings: true
2023-03-06 16:15:12 +08:00
},
proxy: {
'/pms-am/ureport/preview': {
target: 'http://192.168.1.62:8080/' // TODO: 线上发布时需修改此处
2023-04-10 17:01:04 +08:00
},
2023-04-17 11:34:12 +08:00
// '/pms/order/importExcelOrder': {
// target: 'http://192.168.1.21:8080/' // TODO: 线上发布时需修改此处
// }
2023-01-16 11:08:54 +08:00
}
}
}