|
|
@@ -7,7 +7,7 @@ function resolve(dir) {
|
|
|
|
|
|
const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
|
|
-const name = process.env.VUE_APP_TITLE || '苦糖果MES-软件开发记录' // 网页标题
|
|
|
+const name = process.env.VUE_APP_TITLE || '国软MES-软件开发记录' // 网页标题
|
|
|
|
|
|
const port = process.env.port || process.env.npm_config_port || 9091 // 端口
|
|
|
|
|
|
@@ -35,15 +35,15 @@ module.exports = {
|
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- target: `http://36.133.174.236:9090`,
|
|
|
+ target: `http://localhost:9090`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
}
|
|
|
},
|
|
|
'/ureport': {
|
|
|
- target: 'http://36.133.174.236:9090',
|
|
|
- ws: false,
|
|
|
+ target: 'http://localhost:9090',
|
|
|
+ ws:false,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
'^/ureport': '/ureport'
|
|
|
@@ -104,7 +104,7 @@ module.exports = {
|
|
|
.plugin('ScriptExtHtmlWebpackPlugin')
|
|
|
.after('html')
|
|
|
.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$/
|
|
|
}])
|
|
|
.end()
|
|
|
@@ -134,8 +134,8 @@ module.exports = {
|
|
|
})
|
|
|
config.optimization.runtimeChunk('single'),
|
|
|
{
|
|
|
- from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
|
|
|
- to: './' //到根目录下
|
|
|
+ from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
|
|
|
+ to: './' //到根目录下
|
|
|
}
|
|
|
}
|
|
|
)
|