Webpack configuration and build scripts to deploy ES2015+ code to production (via) with legacy browser fallback support via .
This boilerplate is an implementation of the techniques described in my article: Deploying ES2015+ Code in Production Today.
To view site locally, run the following command:
To build the source files without watching for changes or starting a local server, run:
npm run build
By default the build output is unminified. To generate minified, production-ready files, set
NODE_ENV=production npm run build
To validate that this technique works for more than just simple, single-bundle sites, this boilerplate implements several advanced webpack features:
To see how these feature manifest themselves in the generated files, view the
publicdirectory after running the build step.