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

125
Vistas
What is the difference between using `chunckHash` and using hash in HTMLWebpackPlugin?

I am currently trying to hash my javascript file. I was trying, unscssfully, to use chunckHash. I have now noticed HTMLWebpackPlugin allows me to hash a file and pass that file through to the HTML script tag, which is ideal. However, am I missing anything by not using chunckHash?

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

0

chunkhash is part of the code splitting method to reduce the main bundle and split sources into multiple small files.

The difference is you can prefix or suffix your chunks just like you would do it with hash but export them applying different filters or conditions for different paths/folders

/* Soucre: https://webpack.js.org/configuration/output/#outputchunkfilename */
output: {
    chunkFilename: (pathData) => {
      return pathData.chunk.name === 'main' ? '[name].js' : '[name]/[name].js';
    },
}

Source chunkHash: https://webpack.js.org/configuration/output/

Source for code splitting method: https://webpack.js.org/guides/code-splitting/

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