[feature] deploy to single file

This commit is contained in:
Janis
2023-06-25 22:31:01 +02:00
parent 4ef9d0c3b2
commit 9162aede1a
6 changed files with 57 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { viteSingleFile } from "vite-plugin-singlefile"
// https://vitejs.dev/config/
export default defineConfig({
@@ -14,5 +15,5 @@ export default defineConfig({
"@utils": "/src/utils",
},
},
plugins: [react()],
plugins: [react(), viteSingleFile({ useRecommendedBuildConfig: false })],
})