Migrate to vite & new structure
Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
db9e5f32ac
commit
a2d1310780
23
apps/console/vite.config.ts
Normal file
23
apps/console/vite.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import {defineConfig} from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import {resolve} from 'node:path';
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react({babel: {plugins: ["relay"]}}),
|
||||
tailwindcss(),
|
||||
],
|
||||
server: {
|
||||
cors: {
|
||||
// the origin you will be accessing via browser
|
||||
origin: 'http://localhost:8080',
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user