I wanted for a good time to be able to ditch the shitty Neocities IDE + Firefox Dev Tools. But there was no way to make the site work offline because it simply wouldn't work (i.e. absolute links point to system root). Searching on the Bing front-end (a.k.a. DuckDuckGo) also doesn't help, everyone is just spamming to install a bunch of useless stuff.[1][2] I mean come on, I just want a comfortable local environment to work on.
But eventually, I found the light: python -m http.server
.
If you're on Linux then Python's probably already installed, just cd
into the root of your local website and let the python -m http.server
magic happen. And in a couple seconds you have a website that can be acessed in your whole LAN. It's also very fast and awesome, and it works like a website.
For uploading your changes, just use the Neocities CLI.
Benefits over the Neocities IDE
- Use whatever editor you like. Easier to do mass updates
- Offline. Just pull and push when done, no pressure.
- Progress won't get lost EVER, since you'll be saving every other second now
- Bragging rights