0.2.5 • Published 9 years ago
httpolyglot-webpack-server v0.2.5
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-serverUsage
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
- The SSL keys is copied from webpack-dev-server.