Skip to content

Commit

Permalink
Merge pull request #162 from leebenson/v4.4
Browse files Browse the repository at this point in the history
v4.4
  • Loading branch information
leebenson committed May 11, 2019
2 parents b6a4d8c + f99394d commit d49fbef
Show file tree
Hide file tree
Showing 5 changed files with 4,348 additions and 3,991 deletions.
12 changes: 9 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ import * as fs from "fs";
require("dotenv").config();

// Catch CTRL/CMD+C interrupts cleanly
process.on("SIGINT", () => {
process.exit(0);
});
const signals: NodeJS.Signals[] = [
"SIGHUP",
"SIGINT",
"SIGQUIT",
"SIGABRT",
"SIGTERM"
];

signals.forEach(s => process.on(s, () => process.exit(0)));

// Check that we have a specified Webpack runner
if (!process.env.RUNNER) {
Expand Down
Loading

0 comments on commit d49fbef

Please sign in to comment.