|
@@ -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 // 端口
|
|
|
|
|
@@ -33,9 +33,12 @@ module.exports = {
|
|
|
port: port,
|
|
|
open: true,
|
|
|
proxy: {
|
|
|
- // detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
+ // detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
+ // 'https://qszx.qs163.cn'
|
|
|
+ // 114.99.127.245
|
|
|
+ // http://192.168.101.245:8055
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- target: `http://localhost:8080`,
|
|
|
+ target: `https://qszx.qs163.cn`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
@@ -123,7 +126,12 @@ module.exports = {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- config.optimization.runtimeChunk('single')
|
|
|
+
|
|
|
+ config.optimization.runtimeChunk('single'),
|
|
|
+ {
|
|
|
+ from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
|
|
|
+ to: './' //到根目录下
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|