42 lines
849 B
Markdown
42 lines
849 B
Markdown
![]() |
# gulp-remote-src
|
||
|
|
||
|
[![Build Status](https://travis-ci.org/ddliu/gulp-remote-src.png)](https://travis-ci.org/ddliu/gulp-remote-src)
|
||
|
|
||
|
Remote `gulp.src`.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
Install package with NPM and add it to your development dependencies:
|
||
|
|
||
|
npm install --save-dev gulp-remote-src
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var gulp = require('gulp');
|
||
|
var uglify = require('gulp-uglify');
|
||
|
var remoteSrc = require('gulp-remote-src');
|
||
|
|
||
|
gulp.task('remote', function() {
|
||
|
|
||
|
remoteSrc(['app.js', 'jquery.js'], {
|
||
|
base: 'http://myapps.com/assets/'
|
||
|
})
|
||
|
.pipe(uglify())
|
||
|
.pipe(gulp.dest('./dist/'));
|
||
|
})
|
||
|
```
|
||
|
|
||
|
## Options
|
||
|
|
||
|
- `base`
|
||
|
|
||
|
Url base.
|
||
|
|
||
|
- `buffer` (default is true)
|
||
|
|
||
|
Pipe out files as buffer or as stream. Note that some plugins does not support streaming.
|
||
|
|
||
|
- `requestOptions`
|
||
|
|
||
|
Options to be passed to [request](https://github.com/mikeal/request)
|