1
I have read a lot about some tools used to facilitate the workflow on the front end and I met Grunt, I understood what his function is and when he can be useful, but I have the following question, when I use Grunt to perform minification tasks, concatenation, etc., where should I save the new files? My doubt is due to the fact that I found strange the idea of creating a directory with the same files of the original directory only minified.
To summarize, on a website in the directory site-teste/
what the correct structure would look like this?
| site-teste/
| --img/
| --js/
| --css/
| --depois-do-Grunt/
| ----img/
| ----js/
| ----css/
| ----index.html
| --index.html
I knew I could save wherever I wanted, I just wanted to know what the most indicated way, that what I saw in your reply is to create a folder with the Assets minified or concatenated, etc, right? This for a better organization and greater productivity, I understood right??
– Lucas Muller
Exactly, each one chooses the best way to work. I prefer to create a development folder, where I keep the Assets without minification. Since Grunt is a Runner task, you can create a deploy automator that selects only the folder with the ready Assets, or just take the public folder and put it on the server if applicable. It’s to your taste.
– flpms