An open API service indexing awesome lists of open source software.

https://github.com/johanholmerin/rollup-plugin-postcss

Rollup plugin for postcss
https://github.com/johanholmerin/rollup-plugin-postcss

Last synced: 2 months ago
JSON representation

Rollup plugin for postcss

Awesome Lists containing this project

README

        

# rollup-plugin-postcss

Rollup plugin for [PostCSS](https://postcss.org/).

## Installation

```sh
yarn add -D git+https://github.com/johanholmerin/rollup-plugin-postcss#semver:^1.0.0
```

## Usage

**rollup.config.js**

```javascript
import postcss from 'rollup-plugin-postcss';
import css from 'rollup-plugin-css-only';

export default {
input: 'main.js',
output: {
dir: 'build',
format: 'es'
},
plugins: [
postcss({
// default values
include: '**/*.css'
exclude: undefined,
plugins: [
// postcss plugins
],
// rest will be passed as options to PostCSS
}),
css({
output: 'bundle.css'
})
]
};
```