|
@@ -7,7 +7,7 @@ function resolve(dir) {
|
|
|
|
|
|
const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
|
|
-const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题
|
|
|
+const name = process.env.VUE_APP_TITLE || '通榆县乡村振兴监管平台' // 网页标题
|
|
|
|
|
|
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
|
|
|
|
@@ -34,24 +34,16 @@ 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'))
|
|
|
+
|
|
|
+ // https:{
|
|
|
+ // cert : fs.readFileSync(ssl_path.join(__dirname,'src/ssl/supermap.pem')),
|
|
|
+ // key : fs.readFileSync(ssl_path.join(__dirname,'src/ssl/supermap.key'))
|
|
|
// },
|
|
|
- /**
|
|
|
- * 昨夜星辰昨夜风
|
|
|
- * 画廊西畔桂堂东
|
|
|
- * 身无彩凤双飞翼
|
|
|
- * 心有灵犀一点通
|
|
|
- *
|
|
|
- * 寻找附件-有缘人@阿弥陀佛
|
|
|
- * @param attach_ids
|
|
|
- */
|
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- // target: `http://192.168.1.113:3031`,
|
|
|
- target: `http://117.78.49.164:3031`,
|
|
|
+ target: `http://127.0.0.1:3031`,
|
|
|
+ // target: `http://117.78.49.164:3031`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
@@ -63,7 +55,7 @@ module.exports = {
|
|
|
css: {
|
|
|
loaderOptions: {
|
|
|
sass: {
|
|
|
- sassOptions: {outputStyle: 'expanded'}
|
|
|
+ sassOptions: { outputStyle: 'expanded' }
|
|
|
}
|
|
|
}
|
|
|
},
|