Package Exports
- postcss-inline-svg
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-inline-svg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Inline SVG 
PostCSS plugin to inline svg.
@svg-load nav url(img/nav.svg) {
fill: #cfc;
path:nth-child(2) {
fill: #ff0;
}
}
.nav {
background: svg-inline(nav);
}
.up {
background: svg-load(img/arrow-up.svg, fill: #000, stroke: #fff);
}
.nav {
background: url('data:image/svg+xml;charset=utf-8,<svg fill="#cfc"><path d="..."/><path d="..." fill="#ff0"/><path d="..."/></svg>');
}
.up {
background: url('data:image/svg+xml;charset=utf-8,<svg fill="#000" stroke="#fff">...</svg>');
}
Usage
postcss([ require('postcss-inline-svg')(options) ])
See PostCSS docs for examples for your environment.
Options
options.path
Path which will resolve url
Default: false
- path will be relative to source file if it was specified