k2d222 / twwe

Teeworlds collaborative map editor online
GNU Affero General Public License v3.0
13 stars 1 forks source link

Only delete the content of dist/ not the folder #11

Closed ChillerDragon closed 2 years ago

ChillerDragon commented 2 years ago

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 run npm 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 :)

k2d222 commented 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/