Use a plugin for compiling SASS files
Lektor has a few plugins that will automatically compile SASS files as part of the build process lektor-scss, lektor-scsscompile. Using one of them would streamline the SASS development process and eliminate the need for the dart SASS compiler (the npm compiler doesn't compile the lego assets).
I think it would also be really useful to write a custom plugin similar to the two above that allows for jinja2 templating. I've run into a few issues where the SCSS files assume the static files are located at
/static, which breaks under things like gitlab pages which place them at
/project-name/static, and jinja templating should be able to fix it with the