exit.js 335 B

123456789101112131415
  1. "use strict";
  2. /**
  3. * @param {BrowserSync} browserSync
  4. * @returns {Function}
  5. */
  6. module.exports = function (browserSync) {
  7. function exit() {
  8. if (browserSync.active) {
  9. browserSync.events.emit("service:exit");
  10. browserSync.cleanup();
  11. }
  12. }
  13. return exit;
  14. };
  15. //# sourceMappingURL=exit.js.map