Open DreadKnight opened 5 years ago
Do you want lossless or lossy optimization?
@ashik112 probably lossless to start with and move from there. File formats need to remain the same.
@ashik112 about that, I tend to manually optimize files using https://tinypng.com or https://tinyjpg.com
If we're going for lossless, it would be ok to optimize them directly in the assets
folder, to be used for development purposes too and cut down times even when building for production, just copying them to deploy
.
@DreadKnight okay. I will look into it.
All image assets from the project should be optimized when building for production before being copied to the
/deploy
folder, using some webpack plugin that relies on imagemin npm package. This should make the game way smaller to download and therefor faster to play, especially in the long run (sprite sheets).https://github.com/itgalaxy/imagemin-webpack https://github.com/Klathmon/imagemin-webpack-plugin https://github.com/tcoopman/image-webpack-loader