Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option inject #174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

skimi
Copy link

@skimi skimi commented Mar 28, 2020

This adds an inject option to conditionally inject into the HTML.
This is useful when you generate multiple html files and want to inject some files only into some of those html files. Also for ENV based build and maybe more.

This is inspired by the favicons plugin https://github.com/jantimon/favicons-webpack-plugin/blob/master/src/index.js#L82 which has the same option that I'm already using for a project.

@codecov-io
Copy link

codecov-io commented Mar 28, 2020

Codecov Report

Merging #174 into master will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #174   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           56        59    +3     
  Branches        13        15    +2     
=========================================
+ Hits            56        59    +3     
Impacted Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)

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 19ad780...906450f. Read the comment docs.

Base automatically changed from master to main February 20, 2021 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants