feat: build main, preload, react-ts

This commit is contained in:
草鞋没号 committed 2021-11-01 19:30:15 +08:00
1 parent 7b92b312d6
commit 0fb526481d
2 files changed
+50 -18

No files matched your search

+7 -1
View File
@@ -1,7 +1,13 @@
import { join } from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
plugins: [react()],
base: './',
build: {
minify: false,
outDir: join(process.cwd(), 'dist/react-ts'),
},
})