No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json

README.md

jake-requirejs

The jake-requirejs package contains optimizer functions for Jake using RequireJS.

Usage

Simply add the following code near the top of your Jakefile:

var jakeRequireJs = require('jake-requirejs');

Default Optimizer

The following example calls r.js using the example.build.js configuration without minification.

jakeRequireJs.optimize('example.build.js', {'optimize':'none'}, function(){console.log('done');});

Worker Optimizer

The following example calls r.js using the worker.build.js configuration and removes any importScripts for require.js, require.min.js and require-worker.js from the output file.

jakeRequireJs.optimizeWorker('worker.build.js', {});

License

Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)