UNPKG

browser-sync

Version:

Live CSS Reload & Browser Syncing

21 lines (16 loc) 363 B
"use strict"; /** * @param {BrowserSync} browserSync * @returns {Function} */ module.exports = function (browserSync) { function exit() { if (browserSync.active) { browserSync.events.emit("service:exit"); browserSync.cleanup(); } process.exit(); } process.on("SIGINT", exit); return exit; };