JSPM

gulp-unimage

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

Remove unused image file

Package Exports

  • gulp-unimage

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-unimage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-unimage

Build Status

gulp-unimage is a gulp plugin to remove unused image when package images.

Install

With npm do:

npm install gulp-unimage --save-dev

Example

You can use sigle files, globbing patterns or URLS to run gulp-unimage:

var gulp = require('gulp')
var gulpUnimage = require('../index')

gulp.task('default', function(){
    gulp.src('../test/fixture/images/**/*')
        .pipe(gulpUnimage({
            files: '../test/fixture/*.{css,html}'
        }))
        .pipe(gulp.dest('dist/images/'))
})

Options

option.files

Type: Array|String Required value

The base files(html|css), we find in this base files, and make sure the image is used or not.

Release History

  • 0.0.2 Readme detail
  • 0.0.1 Initial release