Bundle Tailwind CSS Stylesheet as a Rollup asset.
Install @logiclabs/rollup-tailwind with npm
npm i -D @logiclabs/rollup-tailwind # yarn add -D @logiclabs/rollup-tailwind
//rollup.config.js
import tailwind from 'rollup-plugin-tailwind';
export default {
...
plugins: [
tailwind({
input: path/to/entry.css,
...
// Tailor the emitted stylesheet to the bundle by removing any unused css
// (hightly recommended when packaging for distribution).
purge: false,
}),
],
...
};
Contributions are always welcome!
To run tests, run the following command
npm run test
If you have any feedback, please reach out to us at fake@fake.com