We started to get organized in the previous chapter by changing the architecture and adding checks for coding standards and best practices. In this chapter, we’ll take this a little further by splitting the code into multiple files and adding tools to ease the process of development. We’ll use Webpack to help us split front-end code into component-based files, inject code into the browser incrementally, and refresh the browser automatically on front-end code changes.
8. Modularization and Webpack
Get Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.