2 changed files with 8 additions and 12 deletions
@ -1,14 +1,14 @@ |
|||||||
import React from "react"; |
import React from "react"; |
||||||
import ReactDOM from "react-dom/client"; |
import ReactDOM from "react-dom/client"; |
||||||
import { BrowserRouter } from "react-router-dom"; |
import { HashRouter } from "react-router-dom"; |
||||||
import App from "./App"; |
import App from "./App"; |
||||||
import "./css/reset.css"; |
import "./css/reset.css"; |
||||||
import "./css/common.css"; |
import "./css/common.css"; |
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById("root")).render( |
ReactDOM.createRoot(document.getElementById("root")).render( |
||||||
<React.StrictMode> |
<React.StrictMode> |
||||||
<BrowserRouter> |
<HashRouter> |
||||||
<App /> |
<App /> |
||||||
</BrowserRouter> |
</HashRouter> |
||||||
</React.StrictMode>, |
</React.StrictMode>, |
||||||
); |
); |
||||||
|
|||||||
@ -1,11 +1,7 @@ |
|||||||
import { defineConfig } from 'vite' |
import { defineConfig } from "vite"; |
||||||
import react, { reactCompilerPreset } from '@vitejs/plugin-react' |
import react from "@vitejs/plugin-react"; |
||||||
import babel from '@rolldown/plugin-babel' |
|
||||||
|
|
||||||
// https://vite.dev/config/
|
|
||||||
export default defineConfig({ |
export default defineConfig({ |
||||||
plugins: [ |
plugins: [react()], |
||||||
react(), |
base: "/PALNetworks/", |
||||||
babel({ presets: [reactCompilerPreset()] }) |
}); |
||||||
], |
|
||||||
}) |
|
||||||
|
|||||||
Loading…
Reference in new issue