rollup-tailwind Tailwind Templates

Rollup Tailwind

Bundle Tailwind CSS Stylesheet as a Rollup asset.

Rollup Tailwind

Bundle Tailwind CSS Stylesheet as a Rollup asset.


Installation

Install @logiclabs/rollup-tailwind with npm

npm i -D @logiclabs/rollup-tailwind # yarn add -D @logiclabs/rollup-tailwind

Usage/Examples

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

Contributing

Contributions are always welcome!

Running Tests

To run tests, run the following command

  npm run test

Feedback

If you have any feedback, please reach out to us at fake@fake.com

Authors

License

MIT

Acknowledgements

Top categories

Loading Svelte Themes