Files
IETM-web/vue.config.js
2025-10-11 11:08:42 +08:00

30 lines
697 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})
console.log('加载自定义配置...'); // 启动时会在终端输出这句话
module.exports = {
devServer: {
port: 10022, // 自定义端口号例如8088可根据需要修改
open: true, // 可选:启动后自动打开浏览器
proxy: {
'/api': {
target: 'http://youneed.top:10017',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
}
};
module.exports = {
configureWebpack: {
resolve: {
fallback: {
"timers": require.resolve("timers-browserify")
}
}
}
}