ci: actions
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
|||||||
- name: Build for file protocol
|
- name: Build for file protocol
|
||||||
run: pnpm build:file
|
run: pnpm build:file
|
||||||
|
|
||||||
- name: Rename dist folders
|
- name: Prepare directories
|
||||||
run: |
|
run: |
|
||||||
mv dist dist-prod
|
mv dist dist-prod
|
||||||
mv dist-prod/index.html dist-prod/404.html
|
mv dist-prod/index.html dist-prod/404.html
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
outDir: mode === 'file' ? 'dist-file' : 'dist',
|
||||||
minify: 'terser',
|
minify: 'terser',
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
compress: {
|
compress: {
|
||||||
|
|||||||
Reference in New Issue
Block a user