Created by: uniqueumang
Improved readability of webpack.config by removing redundant code & hence making it simpler to read.
There should be no change in overall output with current master. Following have been locally tested:
- In production config, code generated is minified (see screenshots).
- In development environment, code generated is not minifed.
- SourceMap is enabled in Prod & dev environment by default.
- By setting GENERATE_SOURCEMAP to false, causes sourcemap not be in generated in prod environment but continues to be generated in dev environment.