0.0.2 • Published 8 years ago
gulp-unused-img v0.0.2
gulp-unused-img
Listing unused images form css(css,less,scss,styl) or html(any) file.
Install
$ npm i --save-dev gulp-unused-imgUsage
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.