Socket
Socket
Sign inDemoInstall

broccoli-base64-css

Package Overview
Dependencies
26
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-base64-css

Replace references to images in CSS with base64 strings


Version published
Maintainers
1
Install size
1.24 MB
Created

Readme

Source

broccoli-base64-css

Broccoli plugin to replace asset urls in CSS with base64 strings.

Install

npm install --save broccoli-base64-css

Example

var base64CSS = require('broccoli-base64-css');

// Example with default options
var tree = base64CSS(tree, {
  imagePath: 'public'
, fontPath: 'public'
, maxFileSize: 4096 // larger files will be left untouched
, extensions: ['css']
, fileTypes: ['png', 'jpg', 'jpeg', 'gif', 'svg']
, assetsFromTree: false // look for images in same tree
                        // as css, rather than at static paths
                        // default: false
});

Keywords

FAQs

Last updated on 02 Feb 2015

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