Image optimisation expansion pack for cartridge
npm install cartridge-images> Image optimisation expansion pack for cartridge
To use this module, you will need cartridge-cli installed and have a cartridge project setup.
``sh`
npm install cartridge-images --save-dev
This module adds the following to a project:
* Image Optimisation using gulp-imagemin
* SVG Optimisation using gulp-svgmin
| Name | Github Profile |
| ------------- |---------------------------------|
| Tristan Ashley | tawashley |
Once installed, the config file task.images.js is created and stored in the _config directory in the root of your cartridge project. Config for images and svgs can be set individually.
This module provides the following gulp tasks
* gulp images - Task that runs all of the tasks mentioned below.gulp images:minify
* - Bitmap image minification. This minifies any .png / .jpg files in the images directory. Images are only optmised if the --prod flag is provided otherwise this task is ignored.gulp images:svgmin
* - Vector image minification. This minifies all .svg files in the svgs folder in the images directory.
*
Commitizen is a command line tool which can help with this:
`sh`
npm install -g commitizengit cz
Now, simply use instead of git commit` when committing.