Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

282
Vistas
Using ant-design vanilla js and simple icons parcel

I'm using the ant-design and simple icons for my vanilla js app. I'm facing with huge imports after I build my app. Currently 3.92mb in minified version. Is there anything I can fix this? I'm using parcel to build my website.

Build:

Build

Package.json

Package

It seems that ant-design and simple icons imports all the icons in the index.js

index.js

enter image description here

enter image description here

This is how I imports the icons:

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can tell parcel generate an analysis of what is in your bundle by adding --reporter @parcel/reporter-bundle-analyzer to your parcel build command, which will output an html file with the analysis to the parcel-bundle-reports folder (see docs). That analysis will at least tell you what is the main contributor(s) to the bundle size are.

Parcel does try to remove unused code from your bundle through scope hoisting and tree-shaking (see docs), but there are things that can mess up this process. You can get additional information about whether and why parcel might have had trouble here by adding the --log-level verbose flag to your parcel build command.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda