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>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

View File

@ -1,6 +1,6 @@
import { createRoot } from 'react-dom/client';
import { App } from './pages/App.tsx';
import './index.css';
// import './index.css';
createRoot(document.getElementById('root')!).render(<App />);

View File

@ -12,12 +12,12 @@ const checkJsh = () => {
return process.env.SHELL === '/bin/jsh';
};
const isJsh = checkJsh();
const plugins = [react(), tailwindcss()];
const plugins = [react(), ];
if (!isJsh) {
const basicSsl = await import('@vitejs/plugin-basic-ssl');
const defaultPlugin = basicSsl.default;
plugins.push(defaultPlugin());
plugins.push(tailwindcss(),defaultPlugin());
}
let target = 'https://kevisual.xiongxiao.me';