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
- Host: GitHub
- URL: https://github.com/johanholmerin/rollup-plugin-postcss
- Owner: johanholmerin
- License: mit
- Created: 2019-07-10T13:20:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T17:45:32.000Z (almost 6 years ago)
- Last Synced: 2025-02-02T17:39:52.279Z (4 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
})
]
};
```