2 ms·
I've been using this: npx serve (This is a node.js thing.)
by jmull 7y ago
I've been using this:
npx serve
(This is a node.js thing.)
- runarberg 7y agoUnlike `python3 -m http.server`, `npx serve` doesn’t redirect `/path/to/dir` to `/path/to/dir/`. This is a problem if you are using relative paths in your `/path/to/dir/index.html`.
- jmull 7y agoFor my purposes that hasn’t been a problem. I guess I would normally just start with ‘path/to/dir/‘ or ‘/path/to/dir/index.html’