Basic pug file server. Ideal for building local prototypes apart from any application. All other files are served statically as they usually would.
npm install -g pugserver
+ myfolder/
- index.pug
- example.css
- example.js
pugserver path/to/myfolder
Open your browser to http://localhost:8080/
The path argument is optional. If not present it will default to current directory. You can choose to run your server on another port than 8080. To do so, use the -p flag followed by the port number:
pugserver -p 1337