Open francescomazzini opened 2 years ago
It is possible to automatize the compression with node modules, in order to get optimized images (and other assets) on build. This one looks more promising: gulp-sharp-responsive to be used with the gulp toolkit. More info here (referred to angular but should be valid). Will add it to the project when refactoring is done and more urgent tasks are completed.
In the end that library was giving many problems because of other dependencies. Opted for a manual normal way. Used https://www.iloveimg.com/resize-image/resize-png#resize-options,pixels and https://tinypng.com/
Images should be compressed. Especially PNG must become TINY with a website like tinypng