An on-demand runtime webpack compilation over HTTP, version 0.5.0. It acts as an Express server that accepts compilation requests via HTTP POST or Node.js API, returning a unique preview URL for each compiled module. The server runs on a random port and allows dynamic entrypoints, unlike webpack-dev-server which is scoped to a single compilation. Key differentiators include per-request compilation IDs, preview routes, and a focus on example-driven testing workflows. Released as a lightweight alternative to static compilation setups.
npm install webpack-http-serverVerified import paths — ran on the pinned version, not inferred.
Creates a server, listens on a random port, compiles a module via both Node.js API and HTTP POST request, then logs the preview URL.
Use webpack-http-server for runtime compilations only; pre-configure webpacks settings via the environment or webpack.config.js
Upgrade to >=0.5.0 which accepts an array of entries
npm install express
import { WebpackHttpServer } from 'webpack-http-server'