first commit
This commit is contained in:
14
vite.config.js
Normal file
14
vite.config.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import react from '@vitejs/plugin-react-swc'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default ({ mode }) => {
|
||||
// load .env files manually
|
||||
const env = loadEnv(mode, process.cwd(), '') // '' = no prefix filtering
|
||||
const base = env.VITE_PUBLIC_URL || '/'
|
||||
|
||||
return defineConfig({
|
||||
plugins: [react()],
|
||||
base
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user