ci: actions

This commit is contained in:
log1997
2025-12-05 17:25:40 +08:00
parent 78fca4cc94
commit a73abc098f
2 changed files with 123 additions and 122 deletions

View File

@@ -38,7 +38,7 @@ jobs:
- name: Build for file protocol
run: pnpm build:file
- name: Rename dist folders
- name: Prepare directories
run: |
mv dist dist-prod
mv dist-prod/index.html dist-prod/404.html

View File

@@ -107,6 +107,7 @@ export default defineConfig(({ mode }) => {
},
},
build: {
outDir: mode === 'file' ? 'dist-file' : 'dist',
minify: 'terser',
terserOptions: {
compress: {