npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

weapp-tailwindcss

v4.8.9

Published

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

Downloads

8,656

Readme

简体中文(zh-cn) | English

star dm0 dm1 license test codecov

[!NOTE] 降低开发维护成本,提升开发效率的 小程序 tailwindcss 全方面解决方案

[email protected] 现已支持 uni-app x 同时构建 Web,小程序,安卓,IOS,鸿蒙,详见 uni-app x 专题

[文档地址] | [备用文档地址] | [加入技术交流群]

特性

| 不仅仅是webpack | 主流框架与原生开发支持 | | --------------------------------------------------- | ----------------------------------------------- | | wepback+vite+gulp | frameworks |

核心插件支持 webpack/vite/rspack/rollup/rolldown/gulp 为基底的框架类小程序开发,涵盖了市面上几乎所有的主流的开发框架。

也支持直接从各个开发者工具中,直接创建的原生小程序应用。

这些插件能够自动识别并精确处理所有 tailwindcss 的工具类来适配小程序环境。

版本对应

目前,weapp-tailwindcss4.x 版本

  • 支持最新版本的 tailwindcss v4v3 还有 v2 jit 版本。
  • 支持 webpack5webpack4, vitegulp 这些打包工具,也支持纯 Nodejs API 的方式,集成到你自己的构建工具中。

如果你还在使用 tailwindcss@2 版本,那你应该使用从 weapp-tailwindcss/webpack4 导出的本插件的 postcss7 webpack4 版本。另外请确保你的 nodejs 版本 >=16.6.0。目前低于 16 的长期维护版本(偶数版本) 都已经结束了生命周期,建议安装 nodejsLTS 版本,详见 nodejs/release

安装与使用方式

生态和解决方案

常见问题

各个框架的模板

旧版本迁移指南

配置项参考

Contribute

我们邀请你来贡献和帮助改进 weapp-tailwindcss 💚💚💚

以下有几个方式可以参与:

  • 报告错误:如果您遇到任何错误或问题,请提issue并提供完善的错误信息和复现方式。
  • 建议:有增强 weapp-tailwindcss 的想法吗?请提 issue 来分享您的建议。
  • 文档:如果您对文档有更好的见解或者更棒的修辞方式,欢迎 pr
  • 代码:任何人的代码都不是完美的,我们欢迎你通过 pr 给代码提供更好的质量与活力。

License

MIT

Star History

Star History Chart

Related projects

weapp-vite

weapp-vite: 把现代化的开发模式带入小程序开发!