提交基础页面
This commit is contained in:
+3
-2
@@ -1,5 +1,6 @@
|
||||
const webpack = require('webpack')
|
||||
module.exports = {
|
||||
lintOnSave: false,
|
||||
// publicPath: '/mi',
|
||||
outputDir: 'dist', // 运行时生成的生产环境构建文件的目录(默认''dist'',构建之前会被清除)
|
||||
assetsDir: 'static', // 放置生成的静态资源(s、css、img、fonts)的(相对于 outputDir 的)目录(默认'')
|
||||
@@ -12,12 +13,12 @@ module.exports = {
|
||||
proxy: {
|
||||
// 配置跨域
|
||||
'/api': {
|
||||
target: 'http://10.94.1.164:7060', // 服务器
|
||||
target: 'http://localhost:7060', // 服务器
|
||||
changeOrigin: true
|
||||
},
|
||||
// 请求静态图片配置项
|
||||
'/api/home/pic': {
|
||||
target: 'http://10.94.1.164:7061', // 图片请求的nginx网址
|
||||
target: 'http://localhost:7061', // 图片请求的nginx网址
|
||||
changeOrigin: true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user