|
@@ -9,7 +9,7 @@ const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
|
|
const name = process.env.VUE_APP_TITLE || '四平市态势感知平台' // 网页标题
|
|
|
|
|
|
-const port = process.env.port || process.env.npm_config_port || 81 // 端口
|
|
|
+const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
|
|
|
|
|
const ssl_path = require('path')
|
|
|
const fs = require('fs')
|
|
@@ -34,11 +34,11 @@ module.exports = {
|
|
|
host: '0.0.0.0',
|
|
|
port: port,
|
|
|
open: true,
|
|
|
+
|
|
|
// https:{
|
|
|
// cert : fs.readFileSync(ssl_path.join(__dirname,'src/ssl/supermap.pem')),
|
|
|
// key : fs.readFileSync(ssl_path.join(__dirname,'src/ssl/supermap.key'))
|
|
|
// },
|
|
|
-
|
|
|
/**
|
|
|
* 昨夜星辰昨夜风
|
|
|
* 画廊西畔桂堂东
|
|
@@ -48,15 +48,12 @@ module.exports = {
|
|
|
* 寻找附件-有缘人@阿弥陀佛
|
|
|
* @param attach_ids
|
|
|
*/
|
|
|
-
|
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- //target: `http://127.0.0.1:3031`,
|
|
|
- // target: `https://2961rt3561.oicp.vip`,
|
|
|
- // target: `https://29613561xe.eicp.vip`,
|
|
|
- target: `http://121.36.228.66:3031`,
|
|
|
- // target: `http://192.168.2.118:3031`,
|
|
|
+ // target: `http://121.36.228.66:3031`,
|
|
|
+ target: `https://29613561xe.eicp.vip`,
|
|
|
+ // target: `http://127.0.0.1:3031`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
@@ -68,7 +65,7 @@ module.exports = {
|
|
|
css: {
|
|
|
loaderOptions: {
|
|
|
sass: {
|
|
|
- sassOptions: {outputStyle: 'expanded'}
|
|
|
+ sassOptions: { outputStyle: 'expanded' }
|
|
|
}
|
|
|
}
|
|
|
},
|