Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ctrlaltdev/pug-server

Open more actions menu
 
 

Repository files navigation

npm NPM Downloads GitHub release licence JavaScript Pug

Basic pug file server. Ideal for building local prototypes apart from any application. All other files are served statically as they usually would.

Installation

npm install -g pugserver

Create a folder

    + myfolder/
      - index.pug
      - example.css
      - example.js

Usage

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

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.