mini-css-extract-plugin
mini-css-extract-plugin copied to clipboard
feat: new hook miniCssExtractPluginBeforeLinkAppend
Allow the link tag to be added to the head before doing some extra processing, such as I want to set a load timeout listener
This PR contains a:
- [ ] bugfix
- [x] new feature
- [ ] code refactor
- [ ] test update
- [ ] typo fix
- [ ] metadata update
Motivation / Use-Case
As the link loads, I want to add code that controls the timeout
Breaking Changes
No
Additional Info
@wangzongxu Any update on this. This might be critical for one of our applications as well.
Codecov Report
Merging #514 (1c778c7) into master (b146549) will increase coverage by
0.05%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #514 +/- ##
==========================================
+ Coverage 88.55% 88.60% +0.05%
==========================================
Files 5 5
Lines 428 430 +2
Branches 96 96
==========================================
+ Hits 379 381 +2
Misses 47 47
Partials 2 2
Impacted Files | Coverage Δ | |
---|---|---|
src/index.js | 87.96% <100.00%> (+0.11%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b146549...1c778c7. Read the comment docs.
Sorry