up
This commit is contained in:
@@ -35,14 +35,14 @@ module.exports = {
|
||||
// webpack-dev-server 相关配置
|
||||
devServer: {
|
||||
// ip 变化
|
||||
host: "172.16.10.34",
|
||||
host: "0.0.0.0",
|
||||
port: port,
|
||||
open: true,
|
||||
proxy: {
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: `http://172.16.10.97:8002`,
|
||||
target: `http://116.204.107.54:8002`,
|
||||
target: `http://172.16.10.97:8002`,
|
||||
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
@@ -152,10 +152,10 @@ module.exports = {
|
||||
},
|
||||
});
|
||||
config.optimization.runtimeChunk("single"),
|
||||
{
|
||||
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
|
||||
to: "./", //到根目录下
|
||||
};
|
||||
{
|
||||
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
|
||||
to: "./", //到根目录下
|
||||
};
|
||||
});
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user