Skip to content

Instantly share code, notes, and snippets.

@gdborton
Created November 15, 2017 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdborton/5701baa2a43802e657d50bce9f07ba8f to your computer and use it in GitHub Desktop.
Save gdborton/5701baa2a43802e657d50bce9f07ba8f to your computer and use it in GitHub Desktop.
Webpack 3 vs 4 test script
# Clear out the babel-loader cache, and the happypack cache.
rm -rf ./node_modules; npm install --silent;
rm -rf ./tmp
echo 'webpack@3.8.1'
NODE_ENV=production time npm run webpack:compile
# Clear out the babel-loader cache, and the happypack cache.
rm -rf ./node_modules; npm install;
rm -rf ./tmp
# Install the newer version of webpack
npm install --silent git://github.com/webpack/webpack.git#b7c746d73f04eac0fe9f751e979ff1c85b28bd9a
echo 'webpack@b7c746d73f04eac0fe9f751e979ff1c85b28bd9a'
NODE_ENV=production time npm run webpack:compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment