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

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

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 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