We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to automatically add the sri integrity attribute after I've created my minified js/css files, but before I inject it into my cshtml.
I'm struggling to add gulp-sri into this process. Any help or suggestions would be appreciated. Thanks!
gulp-sri
gulp.task('inject-external', function () { var target = gulp.src('./Views/Shared/_ExternalLayout.cshtml'); var sources = gulp.src([distJsFolder + 'lib*.min.js', distJsFolder + 'app*min.js', distCssFolder + 'lib*.min.css', distSvgFolder + '*.min.css', distCssFolder + 'app*.min.css'], { read: false }); return target .pipe(inject(sources, { transform: function (filepath) { //Delete wwwroot for (var i = 0; i < arguments.length; i++) { if (typeof (arguments[i]) === 'string') arguments[i] = arguments[i].replace("/wwwroot", ''); } return inject.transform.apply(inject.transform, arguments); } }) ) .pipe(gulp.dest('./Views/Shared')); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to automatically add the sri integrity attribute after I've created my minified js/css files, but before I inject it into my cshtml.
I'm struggling to add
gulp-sri
into this process. Any help or suggestions would be appreciated.Thanks!
The text was updated successfully, but these errors were encountered: