How can I use yoman to work with Sass files?

I am trying to use yoman to compile the styles.sass file created in the app / styles directory.

In my index.html, I write:

<!-- build:css(.tmp/styles) styles/styles.css --> <link rel="stylesheet" href="styles/style.sass" /> <!-- endbuild --> 

When I start the grunt server

Sass file is viewed and compiled into

.tmp / styles /

But in my dist / styles directory nothing is written in my xxxxxxx.styles.css

Can I skip something?

+4
source share
1 answer

Your Sass is compiled into .tmp/styles when starting the grunt server , as it is only temporary. This is to create a mess of compiled CSS files in your app directory. When you run grunt , it compiles it to the dist/styles folder.

+4
source

Source: https://habr.com/ru/post/1487286/


All Articles