New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jake-requirejs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jake-requirejs

RequireJS extension for jake

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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)

Keywords

jake

FAQs

Package last updated on 17 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts