mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-06 11:22:48 +08:00
fix(css): downgrade Tailwind CSS from v4 to v3.4 for better browser compatibility
Tailwind CSS v4 requires modern CSS features (@layer, @property, color-mix) that are not supported in older WebView2 versions, causing styles to fail on some Windows 11 systems. Changes: - Replace @tailwindcss/vite with postcss + autoprefixer - Downgrade tailwindcss from 4.1.13 to 3.4.17 - Convert CSS imports from v4 syntax to v3 @tailwind directives - Add darkMode: "selector" to tailwind.config.js - Create postcss.config.js for PostCSS pipeline This improves compatibility with older browsers and WebView2 runtimes while maintaining the same visual appearance.
This commit is contained in:
+1
-2
@@ -1,11 +1,10 @@
|
||||
import path from "node:path";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
|
||||
export default defineConfig({
|
||||
root: "src",
|
||||
plugins: [react(), tailwindcss()],
|
||||
plugins: [react()],
|
||||
base: "./",
|
||||
build: {
|
||||
outDir: "../dist",
|
||||
|
||||
Reference in New Issue
Block a user