Submodule 11.3: Building the application

  • dist folder
  • Minify
  • Concatenate
  • Uglify

Compressing and Minifying Images

We use the imagemin-cli NPM module to help us compress our images, to reduce the size of the images being used in our project. We have already Installed  the imagemin-cli module globally using the command:

npm install --global imagemin-cli

Set up in package.json the following script:

"imagemin": "imagemin images/* --out-dir dist/images",