how to work with SASS/LESS in real time?

Asked

Viewed 138 times

3

I recently paid attention to pre-processors of css as less and sass because I saw advantages in using them, but I see the need for a workflow so that the css generated is compiled automatically. At first, how is it possible to get the results of the code in real time or automate the build of it?

2 answers

2


It depends a little on the packages you’re using but I use the watcher-lessc listening to file changes and recompiling in milliseconds.

npm install watcher-lessc
watcher-lessc -i ./css/style.less -o ./css/style.css

-1

You can see a tutorial on this link:

Compiling Less file Gulp

If you want real-time use Sergio’s tip using a Watcher.

But to be in "real time", everything will depend on your build and your development process.

Hugs!

  • While this link may answer the question, it is best to include the essential parts of the answer here and provide the link for reference. Replies per link only can be invalidated if the page with the link is changed. - Of Revision

  • Okay, then I reviewed the answer. But here in the stack the answers have to be very mommy with sugar...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.