Code to test webpack's build time.
To add devDependencies, use yarn install
(Recommended) or npm install
.
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.
By default, npm run build
will build without plugins.
If you want to build with Happypack and DllPlugin, just pass a dll
param:
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.