File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
15
15
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
16
16
var ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
17
17
var InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
18
+ var SubresourceIntegrityPlugin = require ( 'webpack-subresource-integrity' ) ;
18
19
var url = require ( 'url' ) ;
19
20
var paths = require ( './paths' ) ;
20
21
var getClientEnvironment = require ( './env' ) ;
@@ -277,6 +278,10 @@ module.exports = {
277
278
// having to parse `index.html`.
278
279
new ManifestPlugin ( {
279
280
fileName : 'asset-manifest.json'
281
+ } ) ,
282
+ // Generate and inject subresources hashes in the final `index.html`.
283
+ new SubresourceIntegrityPlugin ( {
284
+ hashFuncNames : [ 'sha256' , 'sha384' ]
280
285
} )
281
286
] ,
282
287
// ZEAL: Configure resolving imports from client root
Original file line number Diff line number Diff line change 69
69
"webpack" : " 1.13.2" ,
70
70
"webpack-dev-server" : " 1.16.2" ,
71
71
"webpack-manifest-plugin" : " 1.1.0" ,
72
+ "webpack-subresource-integrity" : " 0.7.0" ,
72
73
"whatwg-fetch" : " 1.0.0"
73
74
},
74
75
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments