Closed ChillerDragon closed 2 years ago
This is fine, I'll merge it but note that you can use npm run run
(should be renamed to npm run serve
) to spin up a development server with live-reload capabilities (i.e. your code changes reflect in real time in the browser). The build
command is a distribution build (compressed and optimized) which is slower to build and harder to debug.
see https://parceljs.org/features/development/
I might have the wrong development flow for the client. But what I do is running
npm run build
and then going into dist/ and running a webserver there. After changing the code I runnpm run build
again to update the dist/ folder. But if it gets deleted my web server dies and i have to restart it.This fixes my workflow :)