Move Frontend to Same Repo

This commit is contained in:
2022-05-19 06:11:46 +07:00
parent 44dffed190
commit 5375446fb5
277 changed files with 60340 additions and 0 deletions

23
frontend/vite.config.ts Normal file
View File

@@ -0,0 +1,23 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import svgrPlugin from 'vite-plugin-svgr'
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
// This changes the out put dir from dist to build
// comment this out if that isn't relevant for your project
build: {
outDir: 'build',
},
plugins: [
react(),
VitePWA({}),
svgrPlugin({
svgrOptions: {
icon: true,
// ...svgr options (https://react-svgr.com/docs/options/)
},
}),
],
})