How it works...
Our WebPack configuration handles all our asset bundling needs for our Express application. Previously, our application was using Node.js's own module system to link different files together in our application. However, with WebPack bundling, our Express files are actually merged into a single express.bundle.js file that contains all our application's logic while still retaining their underlying relationships to each other. This also means that any processing done to our files, including TypeScript, can be applied consistently across all the assets of our project.
However, there are few unique things about our WebPack project's configuration that are important to point out. First is the target option, which tells WebPack what ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access