Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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)

Something went wrong with that request. Please try again.