18 lines
306 B
JavaScript
18 lines
306 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;
|
|
};
|