From 1d54191c825cb46ee964a405546e88e9196cfad3 Mon Sep 17 00:00:00 2001 From: Antonio Villagra De La Cruz Date: Mon, 16 Sep 2019 16:24:25 +0200 Subject: [PATCH] Allow editing files in subfolders From https://github.com/hollandben/grunt-cache-bust/pull/250 --- tasks/cachebust.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/cachebust.js b/tasks/cachebust.js index ff75d31..8c35e0c 100644 --- a/tasks/cachebust.js +++ b/tasks/cachebust.js @@ -122,7 +122,7 @@ module.exports = function(grunt) { ]; // find relative paths for shared dirs var originalDirParts = path.dirname(original).split('/'); - for (var i = 1; i <= fileDepth; i++) { + for (var i = 0; i <= fileDepth; i++) { var fileDir = originalDirParts.slice(0, i).join('/'); var baseDir = baseDirs.slice(0, i).join('/'); if (fileDir === baseDir) {