Skip to content

Commit d56c3a6

Browse files
committed
Update deploy.yml
1 parent f11b065 commit d56c3a6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ jobs:
5858
git clone --depth=1 https://github.com/GUI-for-Cores/GUI.for.SingBox.git
5959
(
6060
cd GUI.for.SingBox/frontend
61-
pnpm install && pnpm build-only
61+
pnpm install
62+
sed -i "/__ROLLUP_MANUAL_CHUNKS__/c\ rollupOptions: { output: { manualChunks(id) { if (id.includes('node_modules')) { return id.toString().split('node_modules/')[2].split('/')[0]; } } } }," vite.config.ts
63+
pnpm build-only
6264
)
6365
mkdir -p .vitepress/dist/apps
6466
mv GUI.for.SingBox/frontend/dist .vitepress/dist/apps/gfs
@@ -69,7 +71,9 @@ jobs:
6971
git clone --depth=1 https://github.com/GUI-for-Cores/GUI.for.Clash.git
7072
(
7173
cd GUI.for.Clash/frontend
72-
pnpm install && pnpm build-only
74+
pnpm install
75+
sed -i "/__ROLLUP_MANUAL_CHUNKS__/c\ rollupOptions: { output: { manualChunks(id) { if (id.includes('node_modules')) { return id.toString().split('node_modules/')[2].split('/')[0]; } } } }," vite.config.ts
76+
pnpm build-only
7377
)
7478
mkdir -p .vitepress/dist/apps
7579
mv GUI.for.Clash/frontend/dist .vitepress/dist/apps/gfc

0 commit comments

Comments
 (0)