Skip to content

Instantly share code, notes, and snippets.

@martinkunc
Created October 16, 2021 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinkunc/146d6e0acd14ee1ad4b8bda19f0866bc to your computer and use it in GitHub Desktop.
Save martinkunc/146d6e0acd14ee1ad4b8bda19f0866bc to your computer and use it in GitHub Desktop.
var bundledFiles = glob.sync('./scripts/**/*.ts').reduce(function(map,el) {
map[path.join(path.dirname(el), path.parse(el).name )] = el;
return map;
}, {});
console.log(`Bundled files ${JSON.stringify(bundledFiles, null, 4)}`);
module.exports = {
target: "web",
entry: bundledFiles,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment