JSPM

gulp-unused-img

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q12741F
  • License MIT

Listing unused images form html and css files.

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

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.