Replaced the html minifier for a much quicker one

htmlcompressor creates a new Java Virtual Machine for each file which consumes a lot of memory and makes it slower. htm-minifier is javascript based and run within the nodejs context which makes it much faster (#5818)
So that the `dist` target runs a full build. It doesn't affect the default build