0.2.2 • Published 5 years ago

@mjstahl/other-index v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

other-index

Simple HTTP server to serve a single file other than index.html. Used for development testing.

The idea behind this was when developing a web client your production and development HTML files would be different. You would develop with one, and deploy the other.

Installation

$ npm install --save-dev @mjstahl/other-index

Assuming you have a development.html and a production.html, you would specify two different scripts in your package.json.

"scripts": {
  "develop": "other-index development.html",
  "start": "other-index production.html 3000"
}

Use

other-index [file] [port]

File will default to ./ if one is not specified. Port will default to 8080 if not specified.

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago