|
@@ -1,7 +1,7 @@ |
|
|
/* |
|
|
/* |
|
|
* @Author: your name |
|
|
* @Author: your name |
|
|
* @Date: 2020-04-15 10:00:32 |
|
|
* @Date: 2020-04-15 10:00:32 |
|
|
* @LastEditTime: 2023-06-07 11:21:38 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2023-06-14 17:10:10 |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditors: JinxChen |
|
|
* @Description: In User Settings Edit |
|
|
* @Description: In User Settings Edit |
|
|
* @FilePath: \TelpoH5FrontendWeb\vue.config.js |
|
|
* @FilePath: \TelpoH5FrontendWeb\vue.config.js |
|
@@ -14,9 +14,9 @@ const pxtorem = require('postcss-pxtorem'); // 把代码中px转为rem |
|
|
|
|
|
|
|
|
const CompressionPlugin = require("compression-webpack-plugin"); |
|
|
const CompressionPlugin = require("compression-webpack-plugin"); |
|
|
const port = process.env.port || process.env.npm_config_port || 8080;/* 7788 */ // dev port |
|
|
const port = process.env.port || process.env.npm_config_port || 8080;/* 7788 */ // dev port |
|
|
const proxy = process.env.NODE_ENV === 'development' ?{ |
|
|
|
|
|
|
|
|
/* const proxy = process.env.NODE_ENV === 'development' ?{ |
|
|
// 调试完毕需要把这个代理注释掉,否则发布到线上会有问题产生 |
|
|
// 调试完毕需要把这个代理注释掉,否则发布到线上会有问题产生 |
|
|
/* '/api/id': { |
|
|
|
|
|
|
|
|
'/api/id': { |
|
|
target: 'https://id.ssjlai.com/watersoutboundapi/', |
|
|
target: 'https://id.ssjlai.com/watersoutboundapi/', |
|
|
changeOrigin: true, |
|
|
changeOrigin: true, |
|
|
pathRewrite: { |
|
|
pathRewrite: { |
|
@@ -29,9 +29,9 @@ const proxy = process.env.NODE_ENV === 'development' ?{ |
|
|
pathRewrite: { |
|
|
pathRewrite: { |
|
|
'^/api/ai': '' |
|
|
'^/api/ai': '' |
|
|
} |
|
|
} |
|
|
} */ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
: null; |
|
|
|
|
|
|
|
|
: null; */ |
|
|
module.exports = { |
|
|
module.exports = { |
|
|
// 注意: 多页面配置 不再使用全路径,单页面时可以开启 |
|
|
// 注意: 多页面配置 不再使用全路径,单页面时可以开启 |
|
|
publicPath: './', |
|
|
publicPath: './', |
|
@@ -46,7 +46,7 @@ module.exports = { |
|
|
warnings: false, |
|
|
warnings: false, |
|
|
errors: true |
|
|
errors: true |
|
|
}, |
|
|
}, |
|
|
proxy: proxy, |
|
|
|
|
|
|
|
|
/* proxy: proxy, */ |
|
|
/* host: '192.168.3.186', */// 原为: hotst: 'localhost', 可在同一ip局域网下通过网址生成二维码的方式调试h5, 注意:调试完毕请注释 |
|
|
/* host: '192.168.3.186', */// 原为: hotst: 'localhost', 可在同一ip局域网下通过网址生成二维码的方式调试h5, 注意:调试完毕请注释 |
|
|
//disableHostCheck: true, //真机调试开启 |
|
|
//disableHostCheck: true, //真机调试开启 |
|
|
}, |
|
|
}, |
|
|