Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Invalidate caching when a jade file is renamed
Browse files Browse the repository at this point in the history
We need to recompile a file in the case is name changed (but not necessarly its
content) because some features of meteor-jade depends on the file name, for
instance the unwraped templates.

Fixes #199
  • Loading branch information
mquandalle committed Feb 1, 2016
1 parent 5a435b3 commit 44f1d56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jade/plugin/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class JadeCompilerPlugin extends CachingHtmlCompiler {
}

getCacheKey(inputFile) {
return [ inputFile.getSourceHash() ];
return [
inputFile.getSourceHash(),
inputFile.getBasename(),
];
}

_getMode(file) {
Expand Down

0 comments on commit 44f1d56

Please sign in to comment.