Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-css-background-remove

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-css-background-remove

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

  • 1.2.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 05 Aug 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc