Bones/node_modules/browser-sync/lib/public/exit.js

18 lines
306 B
JavaScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
"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;
};