You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small, simple, very easy wrapper around the [require.js optimizer](https://github.com/jrburke/r.js) to work with [gulp.js](https://github.com/gulpjs/gulp)
9
9
10
10
<table>
11
-
<tr>
11
+
<tr>
12
12
<td>Package</td><td>gulp-requirejs</td>
13
13
</tr>
14
14
<tr>
@@ -17,7 +17,7 @@ A small, simple, very easy wrapper around the [require.js optimizer](https://git
Because the require.js optimizer (_r.js_) is a kind of build system in itself we can't use the `gulp.src([...])` syntax at the moment (I might add this in future), instead this wrapper itself emits a pipable stream, holding a 'virtual' file, in which the result of the r.js build process are saved.
36
-
36
+
37
37
The resulting stream can be treated like a regular `gulp.src(...)` stream.
38
38
39
39
>NOTE: The built in minification/obfuscation is deactivated by default and can not be switched on. Please use a gulp plugin like gulp-uglify for this.
@@ -59,12 +59,11 @@ Note: In order to let gulp know that the optimization completes, return the rjs
59
59
60
60
### Error handling
61
61
62
-
gulp-requirejs will emit errors when you don't pass an options object and if the `baseUrl` or `out` properties are undefined.
63
-
64
-
The require.js optimizer itself might also emit errors; unfortunately there's no way of catching them elegantly at the moment.
62
+
gulp-requirejs will emit errors when you don't pass an options object and if the `baseUrl` or `out` properties are undefined.
63
+
64
+
The require.js optimizer itself might also emit errors; unfortunately there's no way of catching them elegantly at the moment.
65
65
66
66
67
67
## Options
68
68
69
69
The options object supports the same parameters as the [require.js optimizer](https://github.com/jrburke/r.js).
0 commit comments