WebCompiler icon indicating copy to clipboard operation
WebCompiler copied to clipboard

Inability to set NodeSASS as the default

Open timmay7 opened this issue 3 years ago • 1 comments

I'm using Web Compiler 2022+ within VS 2022.

Currently, I can only set the option "useNodeSass": true within compilerconfig.json for each input/output pair. I would like to set this globally within compilerconfig.json.defaults, but it doesn't seem like it's supported. Or if it is, I must not be getting the syntax correct.

Could we add the NodeSass option within the defaults?

timmay7 avatar Jan 07 '22 22:01 timmay7

I'm gonna put this on the backburner since a proper implementation would require significant refactoring. Right now, I use the useNodeSass option to create the correct version of the SassCompiler, but the defaults are not loaded until you call RunCompilerProcess on the Compiler; I could hack this in by creating both Compilers, loading the defaults, then deciding which to use, but I'd like to avoid hacks if I can. I'll take a look at it again if a future enhancement requires refactoring in this area.

failwyn avatar Feb 11 '22 16:02 failwyn