@debug Scss, how to do this in mendix?

0
like the title says. how do you view the @debug out in Mendix? Is there a way to see this in the Mx Console?
asked
2 answers
2

It's unfortunately not possible to see the output of the compiler from Studio Pro. One way to get a log would be to kill the process and check the output in the SPro log file. However, we do explicitly run the compilation with a silent mode flag, so not sure if that includes @debug statements. It might be easier to just run sass manually on the deployment/sass/main.scss file. This would be close to how Studio Pro compiles sass (when running inside an app dir):

& 'C:\Program Files\Mendix\10.12.0.38909\modeler\tools\sass\sass.bat' --no-unicode --error-css --embed-sources -s compressed .\deployment\sass\main.scss .\theme-cache\web\theme.compiled.css
answered
1

Takuma

 

Thanks for this valuable info!

 

Question:

Is the theme.compiled.css really generated with the -s compressed flag?

Since the theme.compiled.css generated by Studio Pro still has the blank spaces/extra characters ...

 

Depending on the complexity of your styling, this means a significant amount of kilobytes that can be saved ...

answered