mini-css-extract-plugin icon indicating copy to clipboard operation
mini-css-extract-plugin copied to clipboard

feat: new hook miniCssExtractPluginBeforeLinkAppend

Open wangzongxu opened this issue 4 years ago • 4 comments

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 avatar Mar 22 '20 03:03 wangzongxu

CLA assistant check
All committers have signed the CLA.

jsf-clabot avatar Mar 22 '20 03:03 jsf-clabot

@wangzongxu Any update on this. This might be critical for one of our applications as well.

ankurbigcomm avatar Apr 06 '20 07:04 ankurbigcomm

Codecov Report

Merging #514 (1c778c7) into master (b146549) will increase coverage by 0.05%. The diff coverage is 100.00%.

Impacted file tree graph

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

codecov[bot] avatar Aug 05 '20 08:08 codecov[bot]

Sorry

wangzongxu avatar Aug 05 '20 08:08 wangzongxu