jantimon / jantimon/html-webpack-plugin
Delete existing links for css and js
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.3k
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
**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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with an HTML file containing existing JavaScript and CSS links, then use the html-webpack-plugin configuration that injects generated assets. Verify how existing links are handled and define done as removing the old links before the generated ones are injected, without requiring users to comment them out.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100