|
@@ -11,15 +11,15 @@ module.exports = {
|
|
|
assetsSubDirectory: 'static',
|
|
|
assetsPublicPath: '/',
|
|
|
proxyTable: {
|
|
|
- '/api': { //将www.exaple.com印射为/apis
|
|
|
+ '/api': { // 将www.exaple.com印射为/apis
|
|
|
// target: 'https://www.4dkankan.com', // 接口域名
|
|
|
// target: 'http://192.168.0.174:8080', // 博焱接口域名
|
|
|
target: 'https://test.4dkankan.com', // 接口域名
|
|
|
- secure: false, // 如果是https接口,需要配置这个参数
|
|
|
- changeOrigin: true, //是否跨域
|
|
|
+ secure: false, // 如果是https接口,需要配置这个参数
|
|
|
+ changeOrigin: true, // 是否跨域
|
|
|
pathRewrite: {
|
|
|
- '^/api': '/api' //需要rewrite的,
|
|
|
- }
|
|
|
+ '^/api': '/api' // 需要rewrite的,
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -67,7 +67,7 @@ module.exports = {
|
|
|
* Source Maps
|
|
|
*/
|
|
|
|
|
|
- productionSourceMap: true,
|
|
|
+ productionSourceMap: false,
|
|
|
// https://webpack.js.org/configuration/devtool/#production
|
|
|
devtool: '#source-map',
|
|
|
|