|
@@ -43,9 +43,9 @@ if(!fs.existsSync(cacheFilePath)) {
|
|
|
|
|
|
//修改配置文件
|
|
//修改配置文件
|
|
const indexJson = JSON.parse(indexJsonContent);
|
|
const indexJson = JSON.parse(indexJsonContent);
|
|
-indexJson.version = dateFormat(new Date()); //版本号
|
|
|
|
-indexJson.target = "http://127.0.0.1:8090"; //接口地址
|
|
|
|
-indexJson.vite = {}; //vite配置
|
|
|
|
|
|
+indexJson.version = dateFormat(new Date()); //版本号
|
|
|
|
+indexJson.target = "http://127.0.0.1:80"; //接口地址
|
|
|
|
+indexJson.vite = {}; //vite配置
|
|
|
|
|
|
//更新配置文件
|
|
//更新配置文件
|
|
console.log(`修改配置文件为生产环境的配置...`)
|
|
console.log(`修改配置文件为生产环境的配置...`)
|