Socket
Book a DemoInstallSign in
Socket

sprockets-svgo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprockets-svgo

bundlerRubygems
Version
0.2.0
Version published
Maintainers
1
Created
Source

Sprockets SVGO

Sprockets helpers for optimizing SVG graphics with svgo.

Installing

Install svgo

# Globally
$ npm install -g svgo
# Or as a dependency
$ npm install -s svgo

Bundle

gem 'sprockets', '>= 3.0.0'
gem 'sprockets-svgo'

Using

With SASS

// icons.scss
.bold {
  background-image: svgo-data-uri("images/bold.svg");
}

With ERB

/* icons.css.erb */
.bold {
  background-image: url(<%= svgo_asset_data_uri("images/bold.svg") %>);
}

Licensed under the MIT License

© 2016 Javan Makhmali

FAQs

Package last updated on 28 Nov 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