Socket
Socket
Sign inDemoInstall

gulp-css-background-remove

Package Overview
Dependencies
130
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-css-background-remove

Remove `background-image` from CSS file to load asynchron


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
6.65 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 05 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc