rollup-plugin-tailwindcss

1.0.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

/rollup-plugin-tailwindcss/

    Package Sidebar

    Install

    npm i rollup-plugin-tailwindcss

    Weekly Downloads

    272

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.14 kB

    Total Files

    11

    Last publish

    Collaborators

    • henry-pulver