Builders own Tailwind generation
Webpack, Vite, Gulp, and custom Node flows all route output through weapp-tailwindcss so mini app builds do not stack the official Tailwind generation plugin.
One CSS-first input, delivered as Web and mini app styles.
Keep `WeappTailwindcss` in charge of generation, escaping, and runtime boundaries without registering the official Tailwind plugin twice in mini app builds.
target: web | weapp@import "tailwindcss" + @source@import + @source
Transform generated classes onlyGenerated classes only
target switches automaticallyWeb vs mini app output
Reuse Tailwind CSS 4 input while keeping source scanning, style generation, class escaping, and runtime utilities in one engineering pipeline.
Webpack, Vite, Gulp, and custom Node flows all route output through weapp-tailwindcss so mini app builds do not stack the official Tailwind generation plugin.
Only class names that Tailwind already generated are transformed, so business strings stay untouched.
One CSS-first input generates browser CSS or mini app CSS depending on the target.
Supports uni-app, Taro, Mpx, Weapp-vite, native mini apps, plus Webpack, Vite, and Gulp.
merge, variants, and cva stay consistent around escaping on mini app targets.
H5/Web keeps native Tailwind semantics; mini apps add selectors, units, escaping, and runtime boundaries. Teams keep one entry and wire frameworks around it.
Read the introduction