gobble-requirejs

0.3.1 • Public • Published

gobble-requirejs

Optimise AMD modules with gobble and RequireJS.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-requirejs

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'requirejs', {
  name: 'app',
  out: 'app.js'
});

The second argument is passed straight through to the RequireJS Optimizer, except that the baseUrl and out options are modified to point to the temporary folders managed by gobble.

License

MIT. Copyright 2014 Rich Harris

Readme

Keywords

Package Sidebar

Install

npm i gobble-requirejs

Weekly Downloads

1

Version

0.3.1

License

MIT

Last publish

Collaborators

  • rich_harris