How to make qmake compile SASS into CSS using qtsass?
Unsolved
Qt Creator and other tools
-
wrote on 26 Jan 2024, 16:42 last edited by
Hi,
I have a sass file which needs to be compiled into CSS.
I have appstyles.sass and I need to convert it to Qt style CSS appstyles.css and have it deployed to the the build folder, installed or sent to the remote server as part of deployment.Right now I am using a postbuild command like the bellow, but that's not the right way.
qtsass -o appstyles.css appstyles.sass
The right way should be something like in the makefile
appstyle.css: appstyle.sass qtsass -o appstyles.css appstyles.sass
But, how do I do that in the .pro file instead?
-
Hi,
Take a look at the Adding compilers topic in qmake's documentation.
1/2