feat: improve profile UI/UX and migrate to Mantine modals
This commit is contained in:
64
src/vite.ts
64
src/vite.ts
@@ -5,36 +5,36 @@ import react from "@vitejs/plugin-react";
|
||||
import { createServer as createViteServer } from "vite";
|
||||
|
||||
export async function createVite() {
|
||||
return createViteServer({
|
||||
root: process.cwd(),
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(process.cwd(), "./src"),
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
react({
|
||||
babel: {
|
||||
plugins: [
|
||||
[
|
||||
"@react-dev-inspector/babel-plugin",
|
||||
{
|
||||
relativePath: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
}),
|
||||
inspectorServer(),
|
||||
tanstackRouter(),
|
||||
],
|
||||
server: {
|
||||
middlewareMode: true,
|
||||
hmr: true,
|
||||
},
|
||||
appType: "custom",
|
||||
optimizeDeps: {
|
||||
include: ["react", "react-dom", "@mantine/core"],
|
||||
},
|
||||
});
|
||||
return createViteServer({
|
||||
root: process.cwd(),
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(process.cwd(), "./src"),
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
react({
|
||||
babel: {
|
||||
plugins: [
|
||||
[
|
||||
"@react-dev-inspector/babel-plugin",
|
||||
{
|
||||
relativePath: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
}),
|
||||
inspectorServer(),
|
||||
tanstackRouter(),
|
||||
],
|
||||
server: {
|
||||
middlewareMode: true,
|
||||
hmr: true,
|
||||
},
|
||||
appType: "custom",
|
||||
optimizeDeps: {
|
||||
include: ["react", "react-dom", "@mantine/core"],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user