I am a little bit stupid, can you provide a further small example maybe?
My flow:
-I develop on localhost (inside a Gitlab repository)
-I push to remote master origin
On my webserver, I use a bash script to:
-I pull from the Gitlab repository
-I delete the current /public directory
-I run Hugo to generate the site on the server
This way it’s live. (I’m skiping the staging/testing server, as I do it on localhost)
Where during my workflow should I be using compression? Localhost while testing? Or before hugo generates the the site on remote?
Which npm libs do you use for CSS, and for Js?
What I want to do is take all the Js files, and compress/minify them and package them together into just one file to serve. I want the same for CSS files.
Do you know of any kind of an image optimizer script one could run recursively over the site and automagically compress images as well?
Thank you in advance! ![]()