parcel-plugin-lit-svg
v1.0.2
Published
A Parcel asset type for inlining SVGs using lit-html
Downloads
1
Readme
parcel-plugin-lit-svg
Turns SVG imports into an inlined
lit-html svg template suitable for
including in other lit-html or lit-element templates.
Usage
lit-html must be included as a dependency of your project (transitively
through lit-element, or directly).
npm install parcel-plugin-lit-svgimport {html} from 'lit-html'
import MyCoolVector from './my-cool-vector.svg'
export default html`
<div class="vector-container">
${MyCoolVector}
</div>
`License
MIT
