rollup-plugin-tailwindcss
v1.0.0
Published
Bundle Tailwind CSS stylesheet as a Rollup asset
Downloads
1,855
Maintainers
Readme
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,
}),
],
};