Revert "feat: Support TailwindCSS V3"

This reverts commit 74572ab2ee.
This commit is contained in:
Apple\Apple
2025-05-06 01:24:36 +08:00
parent 74572ab2ee
commit 19d1f7853f
5 changed files with 319 additions and 162 deletions

View File

@@ -20,26 +20,6 @@ export default defineConfig({
},
},
react(),
{
name: 'semi-css-layer',
transformIndexHtml(html) {
// Add layer to Semi CSS by prepending style tag
return html.replace(
/<\/head>/,
`<style>@layer tailwind-base,semi,tailwind-components,tailwind-utils;</style></head>`
);
},
transform(code, id) {
if (id.includes('@douyinfe/semi-ui') && id.endsWith('.css')) {
// Wrap Semi CSS in a layer
return {
code: `@layer semi { ${code} }`,
map: null
};
}
return null;
}
}
],
optimizeDeps: {
force: true,