cartridge-images
v1.0.0
Published
Image optimisation expansion pack for cartridge
Downloads
14
Maintainers
Readme
Cartridge Images
Image optimisation expansion pack for cartridge
To use this module, you will need cartridge-cli installed and have a cartridge project setup.
npm install cartridge-images --save-dev
This module adds the following to a project:
- Image Optimisation using gulp-imagemin
- SVG Optimisation using gulp-svgmin
Maintainers
| Name | Github Profile | | ------------- |---------------------------------| | Tristan Ashley | tawashley |
Config
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.
Usage
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 thesvgs
folder in the images directory.
Development
Commit message standards
Try and adhere as closely as possible to the Angular commit messages guidelines.
Commitizen is a command line tool which can help with this:
npm install -g commitizen
Now, simply use git cz
instead of git commit
when committing.