Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

http-single-serve

neogeek3MIT1.0.0

HTTP server for use with single page applications.

http, serve

readme

http-single-serve

⚙️ HTTP server for use with single page applications.

NPM Version

Install

$ npm install http-single-serve

Usage

const http = require('http-single-serve');

http({
    port: process.env.PORT || 5000,
    root: 'dist/',
    entry: 'index.html',
});