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

223
Visualizações
webpack - remove asset from generated html

Is it possible to remove an asset entry, i.e. sprite-library.js from the html file that webpack generates?

A Plugin I am using temporarily creates an entrypoint to a svg sprite sheet which is later removed, but the removal does not remove the following html from the index.html which webpack generates.

<script src="sprite-library.js"></script> <!-- this is the line of html I want to get rid of -->
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The index.html file is likely generated using html-webpack-plugin.
It is possible to exclude chunks in HtmlWebpackPlugin as follows:

plugins: [
  new HtmlWebpackPlugin({
    excludeChunks: [ 'dev-helper' ]
  })
]

Reference: https://github.com/jantimon/html-webpack-plugin#filtering-chunks

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