https://github.com/rixo/experiment-snowpack-svelte-hmr
Experimenting with Svelte HMR over Snowpack
https://github.com/rixo/experiment-snowpack-svelte-hmr
Last synced: about 1 year ago
JSON representation
Experimenting with Svelte HMR over Snowpack
- Host: GitHub
- URL: https://github.com/rixo/experiment-snowpack-svelte-hmr
- Owner: rixo
- License: other
- Created: 2020-05-09T01:49:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T05:22:17.000Z (over 3 years ago)
- Last Synced: 2025-04-03T15:44:25.320Z (about 1 year ago)
- Language: Svelte
- Size: 1.99 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snowpack + Svelte HMR
**Status:** ~~a glance into the future.~~ **2020-09-22** Now using stock Snowpack and `svelte-hmr`. Probably headed to become a proper plugin soon.
Copy paste into your terminal:
```bash
git clone git@github.com:rixo/experiment-snowpack-svelte-hmr.git
cd experiment-snowpack-svelte-hmr
yarn
yarn start
```
Watch as 99 \* 5 components are being live compiled by Snowpack and loaded into your browser (have dev tools' network tab open for best experience).
Reload. Faster, right? Snowpack dev server caches built files, and nothing has changed since last time.
Open random Svelte component in IDE. (Just be sure that's a component that is currently rendered into the browser...)
Edit.
_Have tissues ready\*._
Save.
Yup.
This was HMR (when minimal rebuild time).
You didn't even see what happened, did you? Do it again ;)
_\* for your eyes, you perv!_