-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added prod & dev build scripts to reduces bundle size in production #86
base: main
Are you sure you want to change the base?
Conversation
ankibalyan
commented
May 15, 2020
•
edited
Loading
edited
- Loading separate file based on NODE_ENV
- Added terser plugin for production
- Removing PropTypes from production by using react-remove-prop-types Babel plugin
- Removing dev specific console warning from the production build
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sid/react-ui/5pqa1fmre |
Fixing #70 |
Minified file reaches to 32K from earlier un-minified file size of 67K. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go! thanks @ankibalyan
@siddharthkp added conditions for removing console warning for production build via a check for but I'm not sure if you want to use this |
Also, not sure if we want to hide all the warning messages for the production build, let me know if I've to eliminate few of them. |