Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@navelpluisje/rollup-plugin-css

navelpluisje4ISC1.0.2

Currently this plugin does nothing more then passing the content of the css file. There will be a chance a postprocessor will be added. Bu right now it does wath I wanted it to do for a project of mine.

rollup, rollup-plugin, css

readme

Just another CSS plugin for Rollup

Currently this plugin does nothing more then passing the content of the css file. There will be a chance a postprocessor will be added. Bu right now it does wath I wanted it to do for a project of mine.

Using the plugin

  • Run npm i -D @navelpluisje/rollup-plugin-css.
  • Import in your rollup.config.js file: import css from '@navelpluisje/rollup-plugin-css'
  • Ad the css plugin to your plugins. There are no options yet
    plugins: [
      css(),
    ],

Using with typescript

Add a *.d.ts file to your project with at least this snippet:

declare module "*.css" {
  const value: string;
  export default value;
}