mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-26 08:31:53 +08:00
fix(i18n): 完善国际化并迁移 WLOC 脚本
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
import { build } from "esbuild";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
|
||||
await mkdir(new URL("./dist/v1/", import.meta.url), { recursive: true });
|
||||
|
||||
for (const [entry, outfile] of [
|
||||
["src/response-entry.js", "dist/v1/wloc.js"],
|
||||
["src/settings-entry.js", "dist/v1/wloc-settings.js"]
|
||||
]) {
|
||||
await build({
|
||||
entryPoints: [entry],
|
||||
outfile,
|
||||
bundle: true,
|
||||
format: "iife",
|
||||
target: ["es2017"],
|
||||
minify: true,
|
||||
legalComments: "eof"
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user