lit-svg-loader
v0.0.3
Published
Load svg files as svg tagged template literals
Downloads
381
Maintainers
Readme
Usage
npm i -D lit-svg-loader
module: {
rules: [
{
test: /\.svg$/,
loader: 'lit-svg-loader'
}
]
}
import { LitElement, html, customElement } from 'lit-element'
import icon from './icon.svg'
@customElement('icon-el')
export class extends LitElement {
render() {
return html`<p>such style. very win. ${ icon }</p>`
}
}