Pre processors and how to work with them

0

Hello folks from the community, I have doubts about how to work with preprocessors, after all I will have to rewrite the code twice? or will I have to copy and paste into an online convertor? I have a lot of knowledge about using pug, stylus and coffee to use in my projects, but I do not know how and if there is a possibility to make them compile for html and css and js without having to be copying and pasting into converters!     

asked by anonymous 22.04.2018 / 21:55

1 answer

2

Hello, there are several automators with easily configurable preprocessor plugins. Gulp and Grunt, I believe they are the best known.

By configuring it, you leave the development code in a folder named / assets / src / ** and the automator generates a new optimized code, compressed and etc in another folder such as / assets / dist / **.

Of course this is an example!

You can find several tutorials around, but I leave here the content created in tableless.

GULP: link

GRUNT: link

    
22.04.2018 / 22:21