https://github.com/wang2lang/subresource-intergrity
subResource intergrity webpack configs demo
https://github.com/wang2lang/subresource-intergrity
subresource-integrity webpack
Last synced: over 1 year ago
JSON representation
subResource intergrity webpack configs demo
- Host: GitHub
- URL: https://github.com/wang2lang/subresource-intergrity
- Owner: wang2lang
- Created: 2017-08-09T05:46:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T05:56:23.000Z (almost 9 years ago)
- Last Synced: 2025-01-10T08:55:49.152Z (over 1 year ago)
- Topics: subresource-integrity, webpack
- Language: HTML
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
前端启用SRI策略
---------
Development
===========
#### 测试subressource integrity
```
$ npm i
$ npm run build
$ http-server dist/
```
#### 测试CDN资源不完整从源站下载代码
```
$ npm i
$ npm run build:sri
$ http-server dist/
```
#### 测试CDN资源不完整从源站下载代码,PreLoad资源,然后依顺序执行
```
$ npm i
$ npm run build:pre
$ http-server dist/
```