how to generate a smaller vendor.js file? vendor.js file size is not minified or uglified when running the vendor webpack #1029

Closed
opened 2025-08-09 17:18:36 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @btmadison on 2/12/2017

At close to 5 MB this is very high for a production build, and I notice the vendor.js file served when in production mode is not compressed or uglified.

I have set the environment variable in the console to Production instead of Development and rerun the webpack with the vendor config. Actually with either Dev or Prod, the resultant vendor.js file that is generated is the same size.

Is there a step I am missing to generate a smaller tree shaken, minified and uglified vendor.js file?

*Originally created by @btmadison on 2/12/2017* At close to 5 MB this is very high for a production build, and I notice the vendor.js file served when in production mode is not compressed or uglified. I have set the environment variable in the console to Production instead of Development and rerun the webpack with the vendor config. Actually with either Dev or Prod, the resultant vendor.js file that is generated is the same size. Is there a step I am missing to generate a smaller tree shaken, minified and uglified vendor.js file?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1029
No description provided.