0.0.3 • Published 7 years ago

gulp-css-url-extract v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

gulp-css-url-extract

This gulp task extracts all url found within a stylesheet (those within a url( ... ) declaration) into output.txt file. This includes images and fonts.

Features

  • Supports buffer.
  • Filter by url extension.

Install

Install this plugin with the command:

npm install gulp-css-url-extract --save

Usage

var cssUrlExtract = require('gulp-css-url-extract');

//Without options
gulp.task('default', function () {
    return gulp.src('src/css/input.css')
        .pipe(cssUrlExtract())
});

//With options
gulp.task('default', function () {
    return gulp.src('src/css/input.css')
        .pipe(cssUrlExtract({
            extensionsAllowed: ['.png', '.jpg']
        }))
});

License

Copyright (c) 2016 Md Nazmul Hossain under the MIT License.

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago