Package Exports
- gulp-delete-unused-images
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-delete-unused-images) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Gulp Delete Unused Images
gulp-delete-unused-images is a Gulp plugin which will find unused graphics inside text files (html|css|js) and deletes them.
Inspired by https://github.com/mcfedr/gulp-unused-images
Installation
npm install gulp-delete-unused-images --save
Options
log
boolean | default: falseLog the output to console
delete
boolean | default: trueDelete the files :)
Usage
var deleteUnusedImages = require('gulp-delete-unused-images');
gulp.src(['dev/images/**/*', 'dev/edm.html'])
.pipe(plumber())
.pipe(deleteUnusedImages({
log: true,
delete: true
}))
.pipe(gulp.dest('./deploy')
Contributing
I'm new to writing Gulp plugins, be gentle. If there's anything you find wrong with this, please help.
Release History
- 0.0.1 Initial release