gulp-noopener
v1.0.5
Published
Adds rel="noopener" to relevant HTML
Downloads
3
Readme
gulp-noopener
Warns you about (or adds for you) rel="noopener"
to relevant HTML tags, <a>
and <form>
, that have their target
set.
Install
npm install gulp-noopener --save
Usage
Display warnings.
var noopener = require('gulp-noopener');
gulp.task('html', function() {
gulp.src('src/*.html')
.pipe(noopener.warn())
.pipe(gulp.dest('output'));
});
Overwrite. Uses regex to overwrite, so use with caution.
var noopener = require('gulp-noopener');
gulp.task('html', function() {
gulp.src('src/*.html')
.pipe(noopener.overwrite())
.pipe(gulp.dest('output'));
});