Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

266
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda