Name: gulp-srizer
Owner: Namshi
Description: Add SRI hashes to your assets
Created: 2015-09-28 13:12:14.0
Updated: 2015-12-28 10:19:28.0
Pushed: 2015-09-30 11:15:17.0
Homepage: null
Size: 196
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Easilly add the needed w3c Sri informations to your html and jade files.
Install this library via NPM:
install gulp-srizer --save
srizer = require('gulp-srizer');
.task('sri', function() {
return gulp.src('path/to/your/jade/or/html/files')
.pipe(srizer())
.pipe(gulp.dest('/where/should/we/write/them'));
example:
er({fileExt: 'css'});
r
er({fileExt: ['css', 'js']});
example:
er({path: '/path/to/your/resources'});
example:
er({algo: 'sha512'});
example:
er({prefix: false});
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: npm test