I have some things for development - e.g mocks which I would like to not bloat my distributed build file with.
In RequireJS you can pass a config in a plugin file an
Use envirnment variables to create dev and prod deployments:
https://webpack.js.org/guides/environment-variables/