Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/justinidlerz/gulp-html-url-prefix
- Owner: Justinidlerz
- Created: 2016-07-01T06:57:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T05:38:54.000Z (about 7 years ago)
- Last Synced: 2024-10-15T09:32:13.072Z (24 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gulp-html-url-prefix
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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