Skip to content

Webpack loader to load svg files as lit-element tagged template literals

Notifications You must be signed in to change notification settings

ivands/lit-svg-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Webpack loader to load svg files as lit-element tagged template literals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published