rollup-plugin-postcss-export
Seamless integration between Rollup and PostCSS, witch process the styles and bundle them into 1 external css file;
Installation
npm install rollup-plugin-postcss-export
Rollup import example
Use rollup import system to import styles that will be later processed by rollup. The processed style are concatenated and exported into a single external file
config
;;
entry
Use with CSS modules
The postcss-modules plugin allows you to use CSS modules in PostCSS, it requires some additional setup to use in Rollup:
;; const cssExportMap = {};
That's it, you can now use CSS modules and import CSS like this:
; console; // .className_echwj_1
License
MIT © lmihaidaniel