stylus-inline-svg

0.1.3 • Public • Published

stylus-inline-svg

Wraps stylus.url() to inline SVG images as UTF8 instead of Base64. All other images are passed to the stylus.url() method.

var
    inlineSVG = require('stylus-inline-svg');
 
stylus(str)
    .set('filename', __dirname + '/css/test.styl')
    .define('url', inlineSVG({'paths': [__dirname + '/public']}))
    .render(function (err, css) {
 
    });

Readme

Keywords

Package Sidebar

Install

npm i stylus-inline-svg

Weekly Downloads

2

Version

0.1.3

License

ISC

Last publish

Collaborators

  • pstenstrm