1.2.2 • Published 6 years ago

gulp-add-host v1.2.2

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

gulp-add-host

add host and protocal for link and script tags in html file

功能

给html模版中所有script link img标签的资源链接地址添加域名。

使用方式

//引入
var addHost = require('gulp-add-host');

//task中使用
gulp.task('build:view', function() {
    gulp
        .src(VIEW)
        .pipe(addHost({
            script: 'http://cresauth.xxx.cn',
            link: 'http://cresauth1.xxx.cn',
            img: 'http://cresauth2.xxx.cn'
        }))
        .pipe(gulp.dest(VIEW_DEST));
});
1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago