jake-requirejs

0.0.1 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i jake-requirejs

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • bergos