httpolyglot-webpack-server

0.2.5 • Public • Published

httpolyglot-webpack-server

Using httpolyglot to serve http/https over the same port for Webpack development server

Caution

This is a fork of webpack-httpolyglot-server

Installation

$ npm i --save-dev webpack-httpolyglot-server

Usage

Node

var createWebpackServer = require('httpolyglot-webpack-server');
 
const server = createWebpackServer(config, serverOptions);

The config can be Array, it can use multiple config.

Configuration

output.publicPath

Use // as a prefix instead of http:// or https://, but if you're making chrome extension (prefix: chrome-extension://), it's not applicable.

webpack-hot-middleware entry

This tool used webpack-hot-middleware for enable hot module replacement.

devMiddleware

Apply webpack-dev-middleware options.

hotMiddleware

Apply webpack-hot-middleware options.

Credits

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i httpolyglot-webpack-server

Weekly Downloads

1

Version

0.2.5

License

MIT

Last publish

Collaborators

  • sammkj