thgh / rollup-plugin-scss

Rollup and compile multiple .scss, .sass and .css imports
MIT License
134 stars 47 forks source link

Compression an injection feature request #21

Closed wwwebman closed 3 years ago

wwwebman commented 5 years ago

Hello, thanks for sharing!

Is there any plan to implement next features:

  1. possibility to compress/minify output css
  2. bundle css together with bundle.js (aka inject feature webpack loaders apply)

I guess there is possibility to do point 1 one by own handler inside output() method, right?

thgh commented 5 years ago
  1. It would be nice if the plugin would look at process.env.NODE_ENV and look for minifier in package.json and would enable minification.
  2. Could be an option

I'm open to backwards compatible PRs 👍

thgh commented 3 years ago
  1. See https://github.com/thgh/rollup-plugin-scss/tree/v3#examples
  2. There is now an insert option
endday commented 3 years ago
  1. See https://github.com/thgh/rollup-plugin-scss/tree/v3#examples
  2. There is now an insert option

when is the insert option,the examples can't find this.