Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bergos/jake-requirejs
https://github.com/bergos/jake-requirejs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bergos/jake-requirejs
- Owner: bergos
- Created: 2013-03-17T16:42:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-17T18:57:07.000Z (almost 12 years ago)
- Last Synced: 2024-04-14T18:21:34.936Z (10 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jake-requirejs
The `jake-requirejs` package contains optimizer functions for [Jake](https://github.com/mde/jake) using [RequireJS](http://requirejs.org/).
## 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
()