Webpack is a compiler and task manager that handles bundling the app and other common web code development tasks, such as:
- Controlling differences between environments; Webpack's ProvidePlugin allows us to specify environment variables in a file that is made available everywhere in the app.
- Emitting a minified version of the code.
- Compiling the code to an older version of JavaScript using babel, which allows us to use the latest features from JavaScript without worrying about JavaScript compatibility on patients' devices.
- Optimizing the code in different ways.
For more information on Webpack, see: https://survivejs.com/webpack/what-is-webpack/
This project also makes use of webpack-dev-server for development, a web server which quickly serves and reloads Webpack's bundles from localhost while working on the code.