Separate Client Portal & Dashboard
This commit is contained in:
23
frontend/dashboard/vite.config.ts
Normal file
23
frontend/dashboard/vite.config.ts
Normal 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/)
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user