File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
# gulp-rollup [ ![ npm] [ npm-image ]] [ npm-url ] [ ![ Dependency Status] [ david-image ]] [ david-url ] [ ![ Build Status] [ travis-image ]] [ travis-url ]
2
2
3
- Gulp plugin for [ Rollup] ( https://www.npmjs.com/package/rollup ) ES6 module bundler.
3
+ Gulp plugin for the [ Rollup] ( https://www.npmjs.com/package/rollup ) ES6 module bundler.
4
4
5
5
## Install
6
6
@@ -18,15 +18,25 @@ var gulp = require('gulp'),
18
18
gulp .task (' bundle' , function (){
19
19
gulp .src (' src/main.js' , {read: false })
20
20
.pipe (rollup ({
21
- // any option supported by rollup can be set here, including sourceMap
21
+ // any option supported by Rollup can be set here, including sourceMap
22
22
sourceMap: true
23
23
}))
24
24
.pipe (sourcemaps .write (" ." )) // this only works if the sourceMap option is true
25
25
.pipe (gulp .dest (' dist' ));
26
26
});
27
27
```
28
28
29
- Refer to [ Rollup docs] ( https://www.npmjs.com/package/rollup ) for a list of valid options.
29
+ In addition to [ the standard Rollup options] ( https://github.com/rollup/rollup/wiki/JavaScript-API ) ,
30
+ gulp-rollup supports ` options.rollup ` , allowing you to use an older, newer, or
31
+ custom version of Rollup by passing in the module like so:
32
+
33
+ ``` js
34
+ gulp .src (' src/main.js' , {read: false })
35
+ .pipe (rollup ({
36
+ rollup: require (' rollup' )
37
+ }))
38
+ // ...
39
+ ```
30
40
31
41
[ npm-url ] : https://npmjs.org/package/gulp-rollup
32
42
[ npm-image ] : https://img.shields.io/npm/v/gulp-rollup.svg
You can’t perform that action at this time.
0 commit comments