Skip to content

Commit

Permalink
configure split-require to use subresource integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Nov 6, 2020
1 parent bd4827d commit c098657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions vault/gulpfile.js
Expand Up @@ -89,6 +89,7 @@ function makeScriptTask (dest, locale) {
filename: function (entry) {
return 'chunk-' + entry.index + '.js'
},
sri: 'sha384',
output: function (bundleName) {
var buf = ''
return to(onwrite, onend)
Expand Down
2 changes: 1 addition & 1 deletion vault/package.json
Expand Up @@ -4,7 +4,7 @@
"private": true,
"main": "index.js",
"scripts": {
"start": "budo index.js --port $PORT -- -p split-require",
"start": "budo index.js --port $PORT -- -p [ split-require --sri sha384 ]",
"pretest": "dependency-check package.json",
"test": "mochify --chrome $(which google-chrome) --allow-chrome-as-root src/{,**}/*.test.js",
"posttest": "standard",
Expand Down

0 comments on commit c098657

Please sign in to comment.