This is a project that has a very simple setup for SASS + JS + Lit that uses rollup.
See an online demo here on Glitch.
- Get started with Lit + SASS + JS
- For TS see
e111077/lit-sass-ts-starter
- For TS see
- Exemplify how to setup rollup to support this config
- This does not include a production build as that may vary from project to project
- This does not support Lit 1
- It can, but the imports will have to be changed
- This does not recommend an Lit app structure - only exemplifies the build setup
Clone the repo. Then install.
npm install
Then start the dev server and rollup watchers
npm run dev
A browser window should open and rollup will watch your files for changes.