Can't use config param in a css asset

Basically, it should work that way.

Are you sure, your context given to executeAsTemplate is what you think it is?

Otherwise, using the search

Check if your main.scss file exists at this location, is valid and not minified before.