🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

broccoli-base64-css

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-base64-css

Replace references to images in CSS with base64 strings

0.0.6
latest
Source
npm
Version published
Weekly downloads
4
-80%
Maintainers
1
Weekly downloads
 
Created
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

broccoli-plugin

FAQs

Package last updated on 02 Feb 2015

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