chibat / chrome-extension-typescript-starter

Chrome Extension TypeScript Starter
MIT License
2.39k stars 403 forks source link

Fixes #26 - auto import all files for webpack #29

Closed banjo closed 3 years ago

banjo commented 3 years ago

Uses glob to auto import all files in the typescript folder, so you won't have to specify them yourself every time you add a new file.

chibat commented 3 years ago

Thanks for your PR

TheLartians commented 3 years ago

Tbh I'm not a big fan of this change, as not specifying entry points will potentially allow unused code to make it into your project. At least for me, Webpack actually already picks up any files imported from the entry points and compiles them automatically.