@coderesque/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 @coderesque/rollup-plugin-style
Usage
Include it as a plugin in your rollup.config.js
.
import rollupPluginStyle from '@coderesque/rollup-plugin-style';
module.exports = {
// ...
plugins: [
rollupPluginStyle(),
],
};
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