Dec 23, 2015
0
Level 11
Install HTML Minifying, where to use the gulp new task
Hi,
I want to install a plugin to minify the html online to have a faster response from the server. I found a solution but I'm not sure it's the best way nor how to implement it.
https://github.com/fitztrev/laravel-html-minify/wiki/Laravel-5---5.1-HTML-Minifying
They say I need to create a new gulp task and the call this command : gulp compress
It'll compress the template created by Laravel but when do I need to run this command.
- On my server when logged in with SSH ?
- Or to add it in the deploy script in forge ?
- Or simply in local and everything will be in the git repository and automatically send on the server ?
The last one seems useless since there's a .gitignore in the ./storage/framework/views/ so no files goes on the repository.
Thanks in advance for your help !
Please or to participate in this conversation.