Created
August 28, 2013 15:06
-
-
Save chrisfinch/6367108 to your computer and use it in GitHub Desktop.
Gruntfile require.js optimisation config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// r.js concatenation and minification of javascript | |
requirejs: { | |
compile: { | |
options: { | |
name: "almond", | |
baseUrl: "lib/js/", | |
include: ['main'], | |
exclude: ['jquery'], | |
mainConfigFile: "lib/js/main.js", | |
out: "build/js/peaks.min.js", | |
paths: { | |
"waveform-data": "../../bower_components/waveform-data/dist/waveform-data.all", | |
"EventEmitter": "../../bower_components/eventEmitter/EventEmitter", | |
"jquery": "../../bower_components/jquery/jquery", | |
"m": "waveform_viewer" | |
}, | |
shim: { | |
"waveform-data": { | |
exports: "WaveformData" | |
} | |
}, | |
wrap: { // https://github.com/jrburke/almond#exporting-a-public-api | |
startFile: 'lib/js/frag/start.frag', | |
endFile: 'lib/js/frag/end.frag' | |
} | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment