前端代码
This commit is contained in:
17
node_modules/browser-sync/dist/public/notify.js
generated
vendored
Normal file
17
node_modules/browser-sync/dist/public/notify.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
/**
|
||||
* @param {BrowserSync} browserSync
|
||||
* @returns {Function}
|
||||
*/
|
||||
module.exports = function (browserSync) {
|
||||
return function (msg, timeout) {
|
||||
if (msg) {
|
||||
browserSync.events.emit("browser:notify", {
|
||||
message: msg,
|
||||
timeout: timeout || 2000,
|
||||
override: true
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
//# sourceMappingURL=notify.js.map
|
Reference in New Issue
Block a user