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,
}),
],
};