Skip to content

Commit

Permalink
Allow editing files in subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVdlC authored Sep 16, 2019
1 parent 16ddb40 commit 1d54191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/cachebust.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1d54191

Please sign in to comment.