fix: update to tailwindcss 4
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export const App = () => {
|
||||
return (
|
||||
<div className='bg-slate-200 w-full h-full border'>
|
||||
<div className='loading bg-black'>
|
||||
<div className='test-loading bg-black'>
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
@tailwind components;
|
||||
@import "tailwindcss";
|
||||
|
||||
#root {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@layer components {
|
||||
.loading-sm {
|
||||
@apply w-4 h-4 border-t-2 border-b-2 rounded-full animate-spin;
|
||||
.test-loading {
|
||||
@apply w-20 h-20 bg-gray-300 rounded-full animate-spin;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { App } from './App.tsx';
|
||||
import '@build/tailwind/main.css';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
1
src/modules/basename.ts
Normal file
1
src/modules/basename.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const basename = DEV_SERVER ? '/' : BASE_NAME;
|
||||
2
src/vite-env.d.ts
vendored
2
src/vite-env.d.ts
vendored
@@ -3,4 +3,4 @@ type SimpleObject = {
|
||||
[key: string | number]: any;
|
||||
};
|
||||
|
||||
declare let DEV_SERVER: boolean;
|
||||
declare let BASE_NAME: string;
|
||||
Reference in New Issue
Block a user