| | |
| | | module.exports = { |
| | | //路径前缀 |
| | | publicPath: "/", |
| | | publicPath: "/enterprises/", |
| | | lintOnSave: true, |
| | | productionSourceMap: false, |
| | | chainWebpack: (config) => { |
| | |
| | | css: { |
| | | extract: { ignoreOrder: true } |
| | | }, |
| | | //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理 |
| | | //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理。 |
| | | devServer: { |
| | | port: 1888, |
| | | // disableHostCheck: true, |
| | | proxy: { |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | target: 'http://localhost', |
| | | // target: 'http://localhost', |
| | | target: 'http://192.168.0.114:81',//钟W |
| | | // target: 'http://localhost:81',//原W |
| | | // target: 'http://192.168.0.108:81',//原W |
| | | // target: 'http://192.168.0.109:81',//唐N |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.vip/api', |
| | | // target: 'https://saber.bladex.vip/api', |
| | | ws: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |