@superflows/rollup-plugin-tailwindcss

1.1.0 • Public • Published

rollup-plugin-tailwindcss

Bundle Tailwind CSS stylesheet as a Rollup asset.

Install

npm i --save-dev rollup-plugin-tailwindcss # or yarn add -D rollup-plugin-tailwindcss

Usage

// rollup.config.js
import tailwind from 'rollup-plugin-tailwindcss';

export default {
  plugins: [
    tailwind({
      input: 'path/to/entry.css', // required
      // Tailor the emitted stylesheet to the bundle by removing any unused CSS
      // (highly recommended when packaging for distribution).
      purge: false,
    }),
  ],
};

License

MIT

Package Sidebar

Install

npm i @superflows/rollup-plugin-tailwindcss

Weekly Downloads

13

Version

1.1.0

License

MIT

Unpacked Size

9.19 kB

Total Files

12

Last publish

Collaborators

  • jamesrowland999
  • henry-pulver