gobble-requirejs
v0.3.1
Published
Optimise AMD modules with gobble and RequireJS
Downloads
38
Readme
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