优化打包体积

This commit is contained in:
2025-04-29 10:25:15 +08:00
parent 1aaf1bbd4a
commit 3c1e30182f
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
const fs = require("fs");
const JSZip = require("jszip");
const ChromeExtension = require("crx");
const { execSync } = require("child_process");
const { execSync, exec } = require("child_process");
const semver = require("semver");
const manifest = require("../src/manifest.json");
const package = require("../package.json");
@ -47,6 +47,8 @@ if (process.env.GITHUB_REF_TYPE === "branch") {
}
execSync("npm run build", { stdio: "inherit" });
// 再打包分割的文件
// execSync("npm run build:split", { stdio: "inherit" });
// 处理firefox和chrome的zip压缩包