https://github.com/welldone-software/gulp-simple-requirejs
A gulp requirejs enabler, passing through all the arguments to rjs
https://github.com/welldone-software/gulp-simple-requirejs
Last synced: 9 days ago
JSON representation
A gulp requirejs enabler, passing through all the arguments to rjs
- Host: GitHub
- URL: https://github.com/welldone-software/gulp-simple-requirejs
- Owner: welldone-software
- License: mit
- Created: 2015-01-21T07:05:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-22T14:44:34.000Z (over 11 years ago)
- Last Synced: 2025-10-05T07:21:22.538Z (9 months ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-simple-requirejs
A gulp requirejs enabler, passing through all the arguments to rjs
## Rational
We needed a requiredjs gulp plugin that, on the one hand, supported advanced features such as includes, source maps etc,
and on the other hand, does not impose starting from `gulp.src`, but rather starts the stream on its own, using the standard rjs arguments.
## Features
Support all single file optimization features including source maps.
## Example
```js
var rjs = require('gulp-simple-requirejs'),
dstDir = 'dist',
srcDir = 'src';
return rjs({
name: 'main',
baseUrl: srcDir ,
mainConfigFile: path.join(srcDir, 'main.js'),
optimize: 'uglify2',
preserveLicenseComments: false,
generateSourceMaps: true,
//include: extraIncludes,
out: 'main.js'
})
.pipe(gulp.dest(dstDir));
```