iGitScor / critical-webpack-plugin

Webpack wrapper for critical css extraction
MIT License
3 stars 1 forks source link

Fetch remote content when passing URL #10

Closed iGitScor closed 7 years ago

iGitScor commented 7 years ago

Pull request

Proposal

What kind of change does this PR introduce?

The plugin can now fetch HTML content remotely.

Did you add tests for your changes?

Yes, I test with an external URL.

Summary

I need to get a compiled version of my website, so I don't have an HTML file, so I'd like the fetch content feature to get this live version.

Other information

Issue: close #3

GIF

Fetch

codecov-io commented 7 years ago

Codecov Report

Merging #10 into master will not change coverage. The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #10   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          18     29   +11     
  Branches        2      3    +1     
=====================================
+ Hits           18     29   +11
Impacted Files Coverage Δ
index.js 100% <100%> (ø) :white_check_mark:

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 315a2e9...cc21bac. Read the comment docs.