change id of root of app so styling workds
This commit is contained in:
parent
56f489e44c
commit
58db12967a
@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" />
|
||||
<div id="app" />
|
||||
<div id="portal" />
|
||||
<script type="module" src="/src/main.ts" defer></script>
|
||||
</body>
|
||||
|
@ -7,7 +7,7 @@ document.addEventListener("touchstart", () => {
|
||||
document.body.setAttribute("inputMode", "touch")
|
||||
})
|
||||
|
||||
const root = document.querySelector<HTMLDivElement>("#root")!
|
||||
const root = document.querySelector<HTMLDivElement>("#app")!
|
||||
mount(App, { root, maxFrameMs: 16 })
|
||||
|
||||
document.body.addEventListener("contextmenu", (e) => {
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"target": "ESNext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
@ -20,5 +20,6 @@
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
|
9
tsconfig.node.json
Normal file
9
tsconfig.node.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user