Add a few comments about why we're renaming JS files during un-minified build

This commit is contained in:
Kenn Jacobsen
2021-03-16 08:21:09 +01:00
parent 604cf69275
commit 84d71a1237
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ function js() {
})
);
} else {
// rename the un-minified file so the client can reference it as '.min.js'
task = task.pipe(rename(function(path) {
path.basename += '.min';
}));

View File

@@ -45,6 +45,7 @@ module.exports = function (files, out) {
})
);
} else {
// rename the un-minified file so the client can reference it as '.min.js'
task = task.pipe(rename(function(path) {
path.basename += '.min';
}));