Easilly add the needed w3c Sri informations to your html and jade files.
Install this library via NPM:
npm install gulp-srizer --save
var srizer = ;gulp;
- fileExt: resource's extension we want to add SRIs for (default: css, js)
- path: where should we look for resource files. By default this path is inferred by the location of your html/jade files
- algo: which hashing algorithm should be used (default: sha256)
- prefix: where should we prepend of not the algorithm to the has or not (default: true)
Tip and tricks:
If you're using gulp-cdnizer or gulp-rev-all in your project, we suggest your
sri task to be the last one.
Have mocha installed and: