lit-svg-loader

0.0.3 • Public • Published

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>`
  }
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i lit-svg-loader

      Weekly Downloads

      211

      Version

      0.0.3

      License

      ISC

      Unpacked Size

      1.54 kB

      Total Files

      3

      Last publish

      Collaborators

      • ivands