feat: add weapp-tailwindcss integration for uni-app

Install required dependencies, configure PostCSS and Vite plugin, create global app.css entry file, import styles in main.js, and add postinstall patch script.
This commit is contained in:
duanshuwen
2026-07-24 11:54:55 +08:00
parent 72b7557ecf
commit 8048050d02
5 changed files with 1554 additions and 8 deletions

7
src/app.css Normal file
View File

@@ -0,0 +1,7 @@
@import "weapp-tailwindcss/index.css";
@source "./**/*.{vue,js,ts}";
@source not "./uni_modules";
@source not "../dist";
@source not "../node_modules";
@source not "../docs";

View File

@@ -1,4 +1,5 @@
import App from "./App";
import "./app.css";
import share from "./utils/share";
// #ifndef VUE3
@@ -32,4 +33,4 @@ export function createApp() {
pinia,
};
}
// #endif
// #endif