Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!