|
@@ -35,8 +35,8 @@ module.exports = {
|
|
|
proxy: {
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- // http://36.133.174.236:9090 http://192.168.1.127:9090 http://192.168.31.110:9090(动感光波) 192.168.58.11:9090(五楼车总)
|
|
|
|
|
- target: `http://36.133.174.236:9190`,
|
|
|
|
|
|
|
+ // http://36.133.174.236:9190 http://192.168.1.127:9190 http://192.168.31.110:9090(动感光波) 192.168.58.11:9090(五楼车总)
|
|
|
|
|
+ target: `http://192.168.28.97:9190`,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
@@ -44,7 +44,7 @@ module.exports = {
|
|
|
},
|
|
},
|
|
|
'/ureport': {
|
|
'/ureport': {
|
|
|
target: 'http://36.133.174.236:9190',
|
|
target: 'http://36.133.174.236:9190',
|
|
|
- ws:false,
|
|
|
|
|
|
|
+ ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
pathRewrite: {
|
|
|
'^/ureport': '/ureport'
|
|
'^/ureport': '/ureport'
|
|
@@ -109,7 +109,7 @@ module.exports = {
|
|
|
.plugin('ScriptExtHtmlWebpackPlugin')
|
|
.plugin('ScriptExtHtmlWebpackPlugin')
|
|
|
.after('html')
|
|
.after('html')
|
|
|
.use('script-ext-html-webpack-plugin', [{
|
|
.use('script-ext-html-webpack-plugin', [{
|
|
|
- // `runtime` must same as runtimeChunk name. default is `runtime`
|
|
|
|
|
|
|
+ // `runtime` must same as runtimeChunk name. default is `runtime`
|
|
|
inline: /runtime\..*\.js$/
|
|
inline: /runtime\..*\.js$/
|
|
|
}])
|
|
}])
|
|
|
.end()
|
|
.end()
|
|
@@ -139,8 +139,8 @@ module.exports = {
|
|
|
})
|
|
})
|
|
|
config.optimization.runtimeChunk('single'),
|
|
config.optimization.runtimeChunk('single'),
|
|
|
{
|
|
{
|
|
|
- from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
|
|
|
|
|
- to: './' //到根目录下
|
|
|
|
|
|
|
+ from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
|
|
|
|
|
+ to: './' //到根目录下
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|