Remove
background-image
from CSS file to load asynchron
$ npm install --save-dev gulp-css-background-remove
Please create a folder dist
to run the tests.
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'))
);
Type: String
Default: image.css
File name to write images to.
Type: String
Default: empty string
Destination folder to write file to.
Type: Regex
Default: /.*(url\((["|']?.+["|']?)?\))+.*/g
Regex to check declarations against. This enables you to move nearly every rule into a separate file.
MIT © Hans Christian Reinl