diff --git a/benchmark/webpack.config.js b/benchmark/webpack.config.js index 8b9036f80b4898..fc8ca0b6e73d2a 100644 --- a/benchmark/webpack.config.js +++ b/benchmark/webpack.config.js @@ -4,7 +4,7 @@ const webpackBaseConfig = require('../webpackBaseConfig'); module.exports = { ...webpackBaseConfig, entry: path.resolve(__dirname, 'index.js'), - mode: 'development', + mode: 'production', output: { path: path.resolve(__dirname, '../tmp'), filename: 'benchmark.js', diff --git a/package.json b/package.json index 026e61e18e3833..eb1bb3dd7e1448 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "proptypes": "cross-env BABEL_ENV=test babel-node --extensions \".tsx,.ts,.js\" ./scripts/generateProptypes.ts", "deduplicate": "node scripts/deduplicate.js", "argos": "argos upload test/regressions/screenshots/chrome --token $ARGOS_TOKEN", - "benchmark": "yarn webpack --config benchmark/webpack.config.js --mode \"production\" && node scripts/benchmark.js", + "benchmark": "yarn webpack --config benchmark/webpack.config.js && node scripts/benchmark.js", "build:codesandbox": "lerna run --parallel --scope \"@material-ui/*\" build", "docs:api": "rimraf ./docs/pages/api-docs && yarn docs:api:build", "docs:api:build": "cross-env BABEL_ENV=test __NEXT_EXPORT_TRAILING_SLASH=true babel-node --extensions \".tsx,.ts,.js\" ./docs/scripts/buildApi.ts ./docs/pages/api-docs ./packages/material-ui/src ./packages/material-ui-lab/src",