Fixed windows compatibility #32

Merged
merged 1 commit into from Jun 13, 2012
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);
}
});