Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #32 from dawnerd/master

Fixed windows compatibility
  • Loading branch information...
commit 7ec1ba6d4bb9c694ddc4c18a8962484210f9fd63 2 parents c58d8d7 + c79dbd4
@mape 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.