0.0.2 • Published 6 years ago

gulp-unused-img v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

gulp-unused-img

NPM version Downloads

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.