scss files in /wwwroot/ should be compiled and minified
scss files in /Pages/ should be compiled but not minified, because they are transformed by "css isolation" and placed in obj/Release/net7.0/scopedcss/bundle/Assembly.styles.css
Notice how the second command uses --minify disable to override the default in the config file. I assumed that would work because it's standard practice in .NET (env vars take precendence, then CLI vars, then file config, then code config).
Assumptions
/wwwroot/
should be compiled and minified/Pages/
should be compiled but not minified, because they are transformed by "css isolation" and placed inobj/Release/net7.0/scopedcss/bundle/Assembly.styles.css
I'm using this msbuild task:
Notice how the second command uses
--minify disable
to override the default in the config file. I assumed that would work because it's standard practice in .NET (env vars take precendence, then CLI vars, then file config, then code config).However, it minifies those files anyway.
Can I override the json config via the CLI?