gulp-css-background-remove

1.2.2 • Public • Published

gulp-css-background-remove Build Status

Remove background-image from CSS file to load asynchron

Install

$ npm install --save-dev gulp-css-background-remove

Development and Test

Please create a folder dist to run the tests.

Usage

const gulp = require('gulp');
const cssBackgroundRemove = require('gulp-css-background-remove');
 
gulp.task('default', () =>
  gulp.src('src/app.css')
    .pipe(cssBackgroundRemove())
    .pipe(gulp.dest('dist'))
);

API

options

filename

Type: String

Default: image.css

File name to write images to.

dest

Type: String

Default: empty string

Destination folder to write file to.

regex

Type: Regex

Default: /.*(url\((["|']?.+["|']?)?\))+.*/g

Regex to check declarations against. This enables you to move nearly every rule into a separate file.

License

MIT © Hans Christian Reinl

Package Sidebar

Install

npm i gulp-css-background-remove

Weekly Downloads

0

Version

1.2.2

License

MIT

Last publish

Collaborators

  • drublic