temp
This commit is contained in:
parent
839eac2894
commit
adb67a6898
20
index.html
20
index.html
@ -1,13 +1,33 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + React + TS</title>
|
<title>Vite + React + TS</title>
|
||||||
|
<link rel="stylesheet" href="/src/index.css" />
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,6 +1,6 @@
|
|||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import { App } from './pages/App.tsx';
|
import { App } from './pages/App.tsx';
|
||||||
|
|
||||||
import './index.css';
|
// import './index.css';
|
||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(<App />);
|
createRoot(document.getElementById('root')!).render(<App />);
|
||||||
|
@ -12,12 +12,12 @@ const checkJsh = () => {
|
|||||||
return process.env.SHELL === '/bin/jsh';
|
return process.env.SHELL === '/bin/jsh';
|
||||||
};
|
};
|
||||||
const isJsh = checkJsh();
|
const isJsh = checkJsh();
|
||||||
const plugins = [react(), tailwindcss()];
|
const plugins = [react(), ];
|
||||||
|
|
||||||
if (!isJsh) {
|
if (!isJsh) {
|
||||||
const basicSsl = await import('@vitejs/plugin-basic-ssl');
|
const basicSsl = await import('@vitejs/plugin-basic-ssl');
|
||||||
const defaultPlugin = basicSsl.default;
|
const defaultPlugin = basicSsl.default;
|
||||||
plugins.push(defaultPlugin());
|
plugins.push(tailwindcss(),defaultPlugin());
|
||||||
}
|
}
|
||||||
|
|
||||||
let target = 'https://kevisual.xiongxiao.me';
|
let target = 'https://kevisual.xiongxiao.me';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user