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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    159
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    159
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i lit-svg-loader

Weekly Downloads

160

Version

0.0.3

License

ISC

Unpacked Size

1.54 kB

Total Files

3

Last publish

Collaborators

  • ivands