gulp-qualify-refs

1.0.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3

Package Sidebar

Install

npm i gulp-qualify-refs

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • uniqname