gulp-unused-img

0.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i gulp-unused-img

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

6.11 kB

Total Files

4

Last publish

Collaborators

  • mlinquan