This commit is contained in:
abearxiong 2025-04-02 18:02:13 +08:00
parent 839eac2894
commit adb67a6898
3 changed files with 34 additions and 14 deletions

View File

@ -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>
</head> <link rel="stylesheet" href="/src/index.css" />
<body> <style>
html,
body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
#root {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
</style>
</head>
<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>

View File

@ -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 />);

View File

@ -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';