@@ -11,16 +11,20 @@ manipulation.
1111
1212## Features
1313
14- - Optional integration with [ html-webpack-plugin] ( https://github.com/ampedandwired/html-webpack-plugin )
15- - Automatic support for code splitting (integrity for lazy-loaded chunks )
16- - Compatible with Webpack 1.x, 2.x, 3.x and 4.x
14+ - Optional integration with [ html-webpack-plugin] ( https://github.com/ampedandwired/html-webpack-plugin ) .
15+ - Automatic support for dynamic imports (also known as code splitting. )
16+ - Compatible with all major Webpack versions, up to and including Webpack 5.
1717
1818## Installation
1919
2020``` shell
2121npm install webpack-subresource-integrity --save-dev
2222```
2323
24+ ``` shell
25+ yarn add --dev webpack-subresource-integrity
26+ ```
27+
2428### Webpack Configuration Example
2529
2630``` javascript
@@ -81,9 +85,11 @@ template as follows:
8185#### Without HtmlWebpackPlugin
8286
8387The correct value for the ` integrity ` attribute can be retrieved from
84- the ` integrity ` property of Webpack assets. However, that property is
85- not copied over by Webpack's ` stats ` module so you'll have to access
86- the "original" asset on the ` compilation ` object. For example:
88+ the ` integrity ` property of Webpack assets.
89+
90+ Note that with Webpack versions before 5, that property is not copied over by
91+ Webpack's ` stats ` module so you'll have to access the "original" asset on the
92+ ` compilation ` object. For example:
8793
8894``` javascript
8995compiler .plugin (" done" , stats => {
0 commit comments