UNPKG

piral-cli-webpack5

Version:

Provides debug and build capabilities for pilets and Piral instances using Webpack v5.

16 lines 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HotModuleServerPlugin = void 0; class HotModuleServerPlugin { constructor(hmrPort) { this.hmrPort = hmrPort; } apply(compiler) { const express = require('express'); const app = express(); app.use(require('../../../src/webpack-hot-middleware/middleware')(compiler)); app.listen(this.hmrPort, () => { }); } } exports.HotModuleServerPlugin = HotModuleServerPlugin; //# sourceMappingURL=HotModuleServerPlugin.js.map