An image minifier for GitPitch PNG, JPEG, GIF and SVG image dependencies. Built using Gulp, the streaming build system.
- The NPM Package Manager
Prepare as follows:
- git clone https://github.com/gitpitch/asset-optimizer.git
- cd asset-optimizer
- npm install gulp
- npm install --save-dev gulp-imagemin
Once your local copy of the asset-optimizer is prepared as indicated, the next step is to copy all of your GitPitch image file dependencies into the assets directory.
Then run the following command:
- gulp dist
When this command completes your optimized image assets will be found under dist/assets/*.
These optimized image assets are now ready to be added to an assets directory alongside your PITCHME.md in your GitHub repo or stored in some publicly accessible CDN.