# @billogram/rollup-plugin-style

> > Extract styles and write it to separate file

Latest version **3.0.11** (published 2019-11-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @billogram/rollup-plugin-style
pnpm add @billogram/rollup-plugin-style
yarn add @billogram/rollup-plugin-style
bun add @billogram/rollup-plugin-style
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.11 |
| Published | 2019-11-05 |
| First published | 2019-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 28.9 KB |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | andreashogstrom, ewakosciukiewicz, miriamlarsson, mrydengren |

## Links

- npm: https://www.npmjs.com/package/@billogram/rollup-plugin-style
- npm.io page: https://npm.io/package/@billogram/rollup-plugin-style

## Dependencies (8)

- [cssnano](https://npm.io/package/cssnano.md) ^4.1.10
- [postcss](https://npm.io/package/postcss.md) ^7.0.14
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.11.0
- [postcss-url](https://npm.io/package/postcss-url.md) ^8.0.0
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^9.5.0
- [concat-with-sourcemaps](https://npm.io/package/concat-with-sourcemaps.md) ^1.1.0
- [node-sass-package-importer](https://npm.io/package/node-sass-package-importer.md) ^5.3.1

## Recent versions

- 3.0.11 (latest) — 2019-11-05
- 3.0.10 — 2019-11-04
- 3.0.9 — 2019-08-26
- 3.0.8 — 2019-08-19
- 3.0.7 — 2019-05-15
- 3.0.6 — 2019-04-05
- 3.0.5 — 2019-04-05
- 3.0.4 — 2019-04-04
- 3.0.3 — 2019-04-02
- 3.0.2 — 2019-04-02
- 3.0.1 — 2019-03-26
- 3.0.0 — 2019-03-19
- 2.3.0 — 2019-03-14
- 2.2.2 — 2019-03-13
- 2.2.1 — 2019-03-12
- … 9 more at https://npm.io/package/@billogram/rollup-plugin-style/versions

## README

# @billogram/rollup-plugin-style

> Extract styles and write it to separate file

Extracts SCSS and CSS using `node-sass` and `postcss` with `autoprefixer` and `cssnano`.

## Install

```
yarn add --exact @billogram/rollup-plugin-style
```

## Usage

Include it as a plugin in your `rollup.config.js`.

```js
import rollupPluginStyle from '@billogram/rollup-plugin-style';

module.exports = {
    // ...
    plugins: [
        rollupPluginStyle({
            filename: 'index.css',
            shouldGenerate: true,
            shouldInjectImport: false,
        }),
    ],
};
```

The following options are available:

- `filename` (default `index.css`): the filename of generated CSS bundle.
- `shouldGenerate` (default: `true`): a boolean value indicating whether to generate a CSS bundle. Style imports are ignored if set to `false`.
- `shouldInjectImport` (default: `false`): a boolean value indicating whether to inject an import statement for the CSS bundle in the JavaScript bundle.

## Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

## License

MIT

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