Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed fs.watchFile to use new fs.watch API for windows compatibility.

  • Loading branch information...
commit c79dbd4f0750d14a5f17af6cda4fb1f9d6d85510 1 parent e83df42
@dawnerd authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/assetmanager.js
View
4 lib/assetmanager.js
@@ -111,8 +111,8 @@ module.exports = function assetManager (assets) {
if (file.match(/^https?:\/\//)) {
return;
}
- fs.watchFile(group.path + file, function (old, newFile) {
- if (old.mtime.toString() != newFile.mtime.toString()) {
+ fs.watch(group.path + file, function (event, file) {
+ if (event === 'change') {
self.generateCache(groupName);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.