3 ms·
>I always start my websites with a simple index.html file and run a `python -m http.server`. That is it I didn't know that was a thing, so thanks for mentionin
by djaychela 6y ago
>I always start my websites with a simple index.html file and run a `python -m http.server`. That is it
I didn't know that was a thing, so thanks for mentioning it - tips like these are one of the main reasons I read hn - and it'll save me hours of now needless file transfers.
- sixbrx 6y ago"npx serve" is another good way to serve static files quickly without needing python or any npm installs even. npx is packaged with npm for a while now.