slackhq / csp-html-webpack-plugin

A plugin which, when combined with HTMLWebpackPlugin, adds CSP tags to the HTML output.
MIT License
164 stars 39 forks source link

Ensuring that html webpack plugin hooks are available #39

Closed AnujRNair closed 5 years ago

AnujRNair commented 5 years ago

Summary

Ensuring that html webpack plugin hooks are available before attempting to register callbacks on hooks - if html webpack plugin has not been defined, this will error out

Requirements (place an x in each [ ])

codecov[bot] commented 5 years ago

Codecov Report

Merging #39 into master will increase coverage by 0.05%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
+ Coverage    93.8%   93.85%   +0.05%     
==========================================
  Files           2        2              
  Lines         113      114       +1     
  Branches       21       22       +1     
==========================================
+ Hits          106      107       +1     
  Misses          6        6              
  Partials        1        1
Impacted Files Coverage Δ
plugin.js 92.39% <100%> (+0.08%) :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 14aabb3...ecd269c. Read the comment docs.