1.0.0 • Published 4 years ago

rollup-plugin-tailwindcss v1.0.0

Weekly downloads
106
License
MIT
Repository
github
Last release
4 years ago

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