You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
9 years ago
|
'use strict';
|
||
|
|
||
|
const chalk = require("chalk");
|
||
|
|
||
|
module.exports = function(livereload, logger) {
|
||
|
var _oldChanged = livereload.changed.bind(livereload);
|
||
|
livereload.changed = function(filePath) {
|
||
|
logger.log(chalk.magenta(filePath) + " reloaded.");
|
||
|
_oldChanged.apply(null, arguments);
|
||
|
}
|
||
|
}
|