Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit ac51db3

Browse files
authored
subresource integrity checking (#103)
1 parent e9e26ff commit ac51db3

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

source/web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"babel-eslint": "^10.1.0",
3030
"eslint": "^6.7.2",
3131
"eslint-plugin-vue": "^6.2.2",
32-
"vue-template-compiler": "^2.6.11"
32+
"vue-template-compiler": "^2.6.11",
33+
"webpack-subresource-integrity": "^1.3.4"
3334
},
3435
"eslintConfig": {
3536
"root": true,

source/web/vue.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
var SriPlugin = require('webpack-subresource-integrity');
3+
4+
module.exports = {
5+
configureWebpack: {
6+
output: {
7+
crossOriginLoading: 'anonymous',
8+
},
9+
plugins: [
10+
new SriPlugin({
11+
hashFuncNames: ['sha256', 'sha384'],
12+
enabled: true
13+
}),
14+
],
15+
performance: {
16+
hints: false
17+
}
18+
}
19+
};

0 commit comments

Comments
 (0)