Closed joshgoebel closed 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)
}
I also was confused with watch
option in readme...
Also, it seems that watchDir
doesn't work recursively... Array support may be needed
Released in v2.2.0 including array support :-)
And is it
watch
orwatchDir
? Your README might be wrong.