react-app-rewire-uglifyjs
Advanced tools
Weekly downloads
Readme
create-react-app doesn't support tree-shaking because it uses webpack's builtin uglifyjs plugin. This library will replace it with uglifyjs-webpack-plugin and enable tree shaking to your cra project!
$ yarn add react-app-rewire-uglifyjs --dev
or
$ npm install --only=dev react-app-rewire-uglifyjs
config-overrides.js
const rewireUglifyjs = require('react-app-rewire-uglifyjs');
/* config-overrides.js */
module.exports = function override(config, env) {
config = rewireUglifyjs(config);
return config;
}
FAQs
Add uglifyjs-webpack-plugin to create-react-app using react-app-rewired
The npm package react-app-rewire-uglifyjs receives a total of 294 weekly downloads. As such, react-app-rewire-uglifyjs popularity was classified as not popular.
We found that react-app-rewire-uglifyjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.