[FA-18] Frontend bootstrapped
This commit is contained in:
22
fictionarchive-web/vite.config.ts
Normal file
22
fictionarchive-web/vite.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import path from 'node:path'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
react: path.resolve(__dirname, 'node_modules/react'),
|
||||
'react-dom': path.resolve(__dirname, 'node_modules/react-dom'),
|
||||
'react/jsx-runtime': path.resolve(
|
||||
__dirname,
|
||||
'node_modules/react/jsx-runtime'
|
||||
),
|
||||
'react/jsx-dev-runtime': path.resolve(
|
||||
__dirname,
|
||||
'node_modules/react/jsx-dev-runtime'
|
||||
),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user