Would you be open to supporting custom file extensions to define different extensions other than .css and .js?
My setup is that I compile my css to application.css.erb for consumption in Rails. This triggers a needless page reload when stylesheets would do. I'd like .css.erb to trigger a compilation.
Proposed solution
I see there's this code that checks if the changes are JS, CSS, or other:
Would you be open to supporting custom file extensions to define different extensions other than
.css
and.js
?My setup is that I compile my css to
application.css.erb
for consumption in Rails. This triggers a needlesspage
reload whenstylesheets
would do. I'd like.css.erb
to trigger a compilation.Proposed solution
I see there's this code that checks if the changes are JS, CSS, or other:
I propose we implement an option
autoReload.match.css
(andjs
), where the value is an anymatch set:So something like this should do it:
I can make a PR for this if you agree with the change.