UNPKG

527 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var hotDevelopment_1 = require("./hotDevelopment");
4function runHotDev(clientConfig, options) {
5 var hotDev = new hotDevelopment_1.default(clientConfig, options);
6 hotDev.prepHotClient();
7 process.on('SIGTERM', function () {
8 hotDev
9 .dispose()
10 .then(function () { return process.exit(0); })
11 .catch(function () { return process.exit(1); });
12 });
13 return hotDev;
14}
15exports.default = runHotDev;