Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

react-app-rewire-uglifyjs

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

react-app-rewire-uglifyjs

Add uglifyjs-webpack-plugin to create-react-app using react-app-rewired

    0.1.1latest
    GitHub

Version published
Maintainers
1
Weekly downloads
472
increased by19.49%

Weekly downloads

Readme

Source

react-app-rewire-uglifyjs

npm version npm downloads

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!

Install

$ yarn add react-app-rewire-uglifyjs --dev or $ npm install --only=dev react-app-rewire-uglifyjs

Add it to your project

  1. Rewire your app
  2. modify 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

Last updated on 25 May 2018

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc