gulpQualifyRefs
Fully qualifies references in an HTML file
Getting Started
###install
npm i --save-dev gulp-qualify-refs
###require
var qualify = require('gulp-qualify-refs');
###use
gulp.task('qualify-refs', [], function() {
gulp.src('index.html')
.pipe(qualifyRefs({
rootPath: '//ldscdn.org/cdn2/',
ignore: /^\/public/
}))
.pipe(gulp.dest(buildTarget));
});
##Config
###rootPath
The part of the url that needs to be prepended to the relative path. Typically includes the protocol, domain, and any path that the source is considered relative to.
###ignore
A regular expression that will match paths that are not to be fully qualified. If a string is passed, it will be cohersed into a Regular Expression.
© Tue, 18 Aug 2015 20:21:00 GMT by Intellectual Reserve, Inc. All rights reserved.