0.2.5 • Published 8 years ago

httpolyglot-webpack-server v0.2.5

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

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