koluch / esbuild-plugin-sass

Plugin for esbuild to support SASS styles
45 stars 15 forks source link

Watch sass files nested under sourceDir #34

Closed sax closed 2 years ago

sax commented 2 years ago

I found that I had to do a few tweaks in order for changes to sass files to trigger a recompile in watch mode. By default, I found that only changes to files imported directly by my js files would trigger a reload.

koluch commented 2 years ago

Hi @sax!

I changed your code (in #36) to use SASS statistics for used files, because it seems to be more reasonable and also I don't want to use any more external dependencies. Thanks for your PR!