diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -111,8 +111,8 @@ ManifestRevisionPlugin.prototype.walkAndPrefetchAssets = function (compiler) {
     var walker_options = {
         listeners: {
             file: function (root, fileStat, next) {
-                if (self.isSafeToTrack(root)) {
-                    var assetPath = './' + path.join(root, fileStat.name);
+                var assetPath = './' + path.join(root, fileStat.name);
+                if (self.isSafeToTrack(assetPath)) {
                     compiler.apply(new webpack.PrefetchPlugin(assetPath));
                 }
Now ignorePath takes into account full path with file name