@snowpack/app-template-lit-element-typescript

A preconfigured template for Snowpack with TypeScript and LitElement

Usage no npm install needed!

<script type="module">
  import snowpackAppTemplateLitElementTypescript from 'https://cdn.skypack.dev/@snowpack/app-template-lit-element-typescript';
</script>

README

New Project

✨ Bootstrapped with Create Snowpack App (CSA).

Available Scripts

npm start

Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

npm run build

Builds the app for production to the dist/ folder. It correctly bundles the app in production mode and optimizes the build for the best performance.

Directives

In case you need to add a directive like classMap you should add the extension to the import:

import { classMap } from "lit-html/directives/class-map.js";