Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
If it possible to compress angular2 Js bundle files further

Does anyone have any idea on additional ways to compress the generated production Angular Js files?

Here is what am currently doing...

  1. ng build --prod
  2. grunt
    • concat all files in order of output
    • uglify concatenated js file

I have managed to get it down to around 1.2mb from the above but I would ideally get it down to under a meg.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Another way to improve your compression could be to build using the AOT flag (--aot) which will again, reduce the size of your bundle.

Also, don't forget that the file will be compressed with gzip by your server and will, in the end, weight not as much as 300ko, which is something pretty decent for your whole application. :)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!