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

213
Vistas
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 Respuestas
Responde la pregunta

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