Skip to content

Commit

Permalink
Minor codebase enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Oct 22, 2022
1 parent afb268e commit e2e300d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ module.exports = {
try {
const modernDirs = ['/bundle/programs/web.browser', '/bundle/programs/web.browser/app'];
const legacyDirs = ['/bundle/programs/web.browser.legacy', '/bundle/programs/web.browser.legacy/app'];
const dataPaths = fs.lstatSync(path.join(buildPath, legacyDirs[0])).isDirectory() ? legacyDirs : modernDirs;
const isModern = fs.lstatSync(path.join(buildPath, legacyDirs[0])).isDirectory() ? false : true;
const dataPaths = isModern ? modernDirs : legacyDirs;

dataPaths.forEach((givenPath) => {
const clientPath = path.join(buildPath, givenPath);
Expand Down Expand Up @@ -189,7 +190,7 @@ module.exports = {
if (item.type === 'js' && item.url) {
const file = item.path.replace(RE.path.app, '');
if (!files.js.includes(file)) {
files.js.push(file + '?hash=' + item.hash);
files.js.push(`${file}?hash=${item.hash}`);
}
} else if (item.type === 'css' && item.url) {
const file = item.path.replace(RE.path.app, '');
Expand Down

0 comments on commit e2e300d

Please sign in to comment.