diff --git a/HandleHTML.js b/HandleHTML.js deleted file mode 100644 index c874166..0000000 --- a/HandleHTML.js +++ /dev/null @@ -1,9 +0,0 @@ -import fs from "fs"; - -const htmlPath = "./dist/index.html"; // 打包后的html文件路径 -const htmlText = fs.readFileSync(htmlPath, 'utf8'); -const result = htmlText.replace(/\/log-lottery/g, '.') -console.log(result) -fs.writeFileSync(htmlPath, result, 'utf8'); - -console.log("处理完成"); \ No newline at end of file diff --git a/package.json b/package.json index 3c3ba6e..6a13770 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "vite --host 0.0.0.0", "build": "vue-tsc --noEmit && vite build", "build:pre": "vue-tsc --noEmit && vite build --mode prebuild", - "build:file": "vue-tsc --noEmit && vite build --mode file && node HandleHTML.js", + "build:file": "vue-tsc --noEmit && vite build --mode file", "test": "vitest", "test:ui": "vitest --ui", "preview": "vite preview",