Delete existing links for css and js

Author: hasenradballCreated Jan 27, 2026Updated Jan 28, 2026

Problem I use web files and develop it on a server an then I use the plugin for minify to bring the files on microcontrollers. So I have an working html file with links for js and css.

Describe the solution you'd like Is it possible to automatically remove first existing links for js an css before inject the generated ones?

Describe alternatives you've considered Or how do I setup the plugin correctly, so that there is no need to comment out the links before?

Additional context Add any other context or screenshots about the feature request here.

Source: jantimon/html-webpack-plugin