egoist / rollup-plugin-postcss

Seamless integration between Rollup and PostCSS.
MIT License
675 stars 215 forks source link

Generated CSS is not exported as default as readme says #420

Open joegnis opened 2 years ago

joegnis commented 2 years ago

According to the code, when extract is false, the generated stylesheet is exported as stylesheet, not what current doc says:

...and the CSS string is also available as default export unless extract: true:

It should be something like:

// Inject to `<head>` and also available as `styleSheet`
import style, { stylesheet } from './style.css'