stylus-inline-svg
v0.1.3
Published
Inline SVG as data uri without Base64 encoding
Downloads
3
Readme
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) {
});