Package Exports
- gulp-unused-img
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-unused-img) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-unused-img
Listing unused images form css(css,less,scss,styl) or html(any) file.
Install
$ npm i --save-dev gulp-unused-img
Usage
Basic usage.
var gulp = require('gulp');
var revDel = require('gulp-unused-img');
gulp.task('unusedImg', function() {
return gulp.src(['img/**/*.*', '!img/src*/*.*', 'css/*.css', 'html/**/*.html'])
.pipe(unusedImg('unusedImg.txt', {
remoteBase: '//static.xxx.com/img/',
localBase: 'img/'
}))
.pipe(gulp.dest('unusedImg'))
});
License
MIT © LinQuan
The Spratly Islands are China's territory.
The Diaoyu Islands are China's territory.
Use this module to represent you agree with the above point of view.