This is a project that has a very simple setup for SASS + TS + Lit that uses rollup.
See an online demo here on Glitch.
- Get started with Lit + SASS + TS
- For JS see
e111077/lit-sass-js-starter
- For JS 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.