Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justinidlerz/gulp-html-url-prefix

gulp-html-url-prefix
https://github.com/justinidlerz/gulp-html-url-prefix

Last synced: 16 days ago
JSON representation

gulp-html-url-prefix

Awesome Lists containing this project

README

        

### gulp-html-url-prefix
a plugin of gulp for prefix url

### install
```bash
npm install gulp-html-url-prefix
```

### options

* options - type: `object`
- prefix: `string`, default ` `

```js
urlPrefix({
prefix: '//cdn.xxx.com'
})
```

### example

index.html
```html







```

gulpfile.js
```js
var urlPrefix = require('gulp-html-url-prefix'),
gulp = require('gulp');

gulp.task('url', function() {
gulp.src(['index.html'])
.pipe(urlPrefix({
prefix: '//cdn.xxx.com'
}))
.pipe(gulp.dest('./'));
});
```

and the result is:
```html







```

### License
MIT