Spaces:
Sleeping
Sleeping
Update vite.config.ts
Browse files- vite.config.ts +6 -5
vite.config.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
-
import { defineConfig } from
|
| 2 |
-
import react from
|
| 3 |
-
import path from
|
| 4 |
|
| 5 |
export default defineConfig({
|
|
|
|
| 6 |
plugins: [react()],
|
| 7 |
resolve: {
|
| 8 |
alias: {
|
| 9 |
-
|
| 10 |
},
|
| 11 |
},
|
| 12 |
-
})
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
import path from 'path'
|
| 4 |
|
| 5 |
export default defineConfig({
|
| 6 |
+
base: './', // <--- Добавь эту строчку
|
| 7 |
plugins: [react()],
|
| 8 |
resolve: {
|
| 9 |
alias: {
|
| 10 |
+
'@': path.resolve(__dirname, './'),
|
| 11 |
},
|
| 12 |
},
|
| 13 |
+
})
|