Page 1 of 1

sass compilation

Posted: 15 May 2021, 01:48
by amarullahnazia
I would like to know the workflow of working with sass in the template. For example, how can I watch for changes in src/assets/sass folder and then build the css in the layout/css folder ?
Is there any documentation for that ?

I tried sass --watch src/:src/ --no-source-map command but it converts all the scss files to css.

Re: sass compilation

Posted: 18 May 2021, 15:59
by merve7
Hi,
"sass --watch ..." command watches your changes. Also, you can specify folders or files for example;

Code: Select all

sass --watch src/assets/layout/css:src/assets/layout/css --no-source-map
You can see details for sass commands (https://sass-lang.com/documentation/cli/dart-sass)