Code to test webpack's build time.
To add devDependencies, use
yarn install (Recommended) or
Webpack's document says we can speed up our building process with DllPlugin, which can be found here: DllPlugin.
Besides, HappyPack is a great tool to speed up our building process. You can find it here: HappyPack.
npm run build will build without plugins.
If you want to build with Happypack and DllPlugin, just pass a
npm run build dll
If you are told you haven't permissions to execute the script, run the code below:
$ chmod +x ./script/build.sh
Released under the MIT license.