diff options
author | Alexey Vasiliev <leopard.not.a@gmail.com> | 2021-01-17 18:19:54 +0300 |
---|---|---|
committer | Alexey Vasiliev <leopard.not.a@gmail.com> | 2021-01-17 18:19:54 +0300 |
commit | 595f4718518825dcb22ac635d83d5c55bc2c3353 (patch) | |
tree | 24c81456215f7639953706723b34b018a3a9cf52 /webpack.config.js | |
parent | 4061fe7dc841c05371f41e7e8c2be25b00fd0b34 (diff) |
add subresource integrity
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 1b1980e..3be9b48 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -190,7 +190,9 @@ config.plugins.push( new WebpackAssetsManifest({ output: 'assets-manifest.json', publicPath: config.output.publicPath, - writeToDisk: true + writeToDisk: true, + integrity: true, + integrityHashes: ['sha256'] }), new WorkboxPlugin.InjectManifest({ swSrc: './webpack/sw.js', |