A require-bundler plugin for gulp.
Apart from normal bundling, this plugin also adds a require.config call to the final optimized script in which all paths are re-added that where removed from the build by using "empty:" during optimization.
Thanks to @SteveSanderson for the original gulp-requirejs-bundler and all his other great work!
gulp-requirejs-cdnbundler as a development dependency:
npm install --save-dev gulp-requirejs-cdnbundler
Then, add it to your
var require-bundler = ;gulp;
Takes two arguments: