# @henrikjoreteg/rollup-plugin-css

> Rollup plugin for aggregating and outputting CSS

Latest version **2.0.0** (published 2019-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @henrikjoreteg/rollup-plugin-css
pnpm add @henrikjoreteg/rollup-plugin-css
yarn add @henrikjoreteg/rollup-plugin-css
bun add @henrikjoreteg/rollup-plugin-css
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-01-18 |
| First published | 2018-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 27.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Henrik Joreteg |
| Maintainers | henrikjoreteg |

## Links

- npm: https://www.npmjs.com/package/@henrikjoreteg/rollup-plugin-css
- npm.io page: https://npm.io/package/@henrikjoreteg/rollup-plugin-css

## Dependencies (2)

- [cssmin](https://npm.io/package/cssmin.md) 0.4.3
- [rollup-pluginutils](https://npm.io/package/rollup-pluginutils.md) 2.0.1

## Recent versions

- 2.0.0 (latest) — 2019-01-18
- 1.0.0 — 2018-02-27

## README

# rollup-plugin-css

![](https://img.shields.io/npm/dm/@henrikjoreteg/rollup-plugin-css.svg)![](https://img.shields.io/npm/v/@henrikjoreteg/rollup-plugin-css.svg)![](https://img.shields.io/npm/l/@henrikjoreteg/rollup-plugin-css.svg)

Rollup plugin for aggregating and outputting CSS. I'm extracting this into it's own repo because I keep finding myself wanting it.

## install

```
npm install @henrikjoreteg/rollup-plugin-css
```

## example

```javascript
import css from '@henrikjoreteg/rollup-plugin-css'

const IS_PROD = process.env.NODE_ENV === 'production'

export default {
  input: 'src/worker',
  output: {
    format: 'umd',
    file: 'public/build/worker.js'
  },
  plugins: [
    css({
      output: './public/build/s.css',
      minify: IS_PROD
    })
  ]
}
```

## changelog

2.0.0 - Renamed `ongenerate`to `generateBundle` per updates to Rollup. Thanks @ryan-codingintrigue

## credits

If you like this follow [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter.

## license

[MIT](http://mit.joreteg.com/)

---
_Source: https://npm.io/package/@henrikjoreteg/rollup-plugin-css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
