We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935f5a1 commit 23642dbCopy full SHA for 23642db
README.md
@@ -43,7 +43,7 @@ var gulp = require('gulp'),
43
rjs = require('gulp-requirejs');
44
45
gulp.task('requirejsBuild', function() {
46
- rjs({
+ return rjs({
47
baseUrl: 'path/to/your/base/file.js',
48
out: 'FILENAME_TO_BE_OUTPUTTED',
49
shim: {
@@ -55,6 +55,8 @@ gulp.task('requirejsBuild', function() {
55
});
56
```
57
58
+Note: In order to let gulp know that the optimization completes, return the rjs stream.
59
+
60
### Error handling
61
62
gulp-requirejs will emit errors when you don't pass an options object and if the `baseUrl` or `out` properties are undefined.
0 commit comments