thgh / rollup-plugin-scss

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

Can you push a release with the watchDir change? #43

Closed joshgoebel closed 4 years ago

joshgoebel commented 4 years ago

And is it watch or watchDir? Your README might be wrong.

joshgoebel commented 4 years ago

Meanwhile, for anyone wanting to hack it:

let scssPlugin = scss({
  output: "extension/styles.css",
  prefix: `@import "./colors.scss";`,
})
let transform = scssPlugin.transform
scssPlugin.transform = function(...args) {
  this.addWatchFile('src/css');
  return transform(...args)
}
angryziber commented 4 years ago

I also was confused with watch option in readme...

angryziber commented 4 years ago

Also, it seems that watchDir doesn't work recursively... Array support may be needed

thgh commented 4 years ago

Released in v2.2.0 including array support :-)