mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 18:00:00 +00:00
15 lines
335 B
JavaScript
15 lines
335 B
JavaScript
"use strict";
|
|
/**
|
|
* @param {BrowserSync} browserSync
|
|
* @returns {Function}
|
|
*/
|
|
module.exports = function (browserSync) {
|
|
function exit() {
|
|
if (browserSync.active) {
|
|
browserSync.events.emit("service:exit");
|
|
browserSync.cleanup();
|
|
}
|
|
}
|
|
return exit;
|
|
};
|
|
//# sourceMappingURL=exit.js.map
|