by skybrian · 4y ago · 0 comments
"scripts": {
"build": "esbuild src/app.ts src/app.css --bundle --sourcemap --outdir=site",
"dev": "npm run build -- --servedir=site",
}
Unless you mean something different by "hot reloading" than "recompile on page reload?"It's really a magical experience to have your code open in one window, your browser open next to it, and as soon as you hit ctrl-s instantly see the page change. I won't tweak CSS any other way, changing sizes, colors, etc is amazing with hot reload.