bun-plugin-tailwindcss

0.0.4 • Public • Published

bun-plugin-tailwindcss

About

This is a Bun plugin that enables support for TailwindCSS. As custom CSS loaders are not yet supported by Bun (as of September 2023), this plugin intercepts imports for .css files and processes them using postcss. The resulting code is minified and injected into the document head with JavaScript.

Install

bun add --dev bun-plugin-tailwindcss

Usage

To enable the plugin, simply import it and add it to your build script. An example with React SRR is provided in the example directory.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    2
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i bun-plugin-tailwindcss

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

3.93 kB

Total Files

5

Last publish

Collaborators

  • joshunrau