update grunt so unnecessary files are not included into MIDI.js by default, shrink build from over 100kb to 24kb
This commit is contained in:
parent
ed0e13fd08
commit
fd761e1cce
4 changed files with 405 additions and 3486 deletions
17
grunt.js
17
grunt.js
|
@ -10,10 +10,23 @@
|
|||
module.exports = function (grunt) {
|
||||
grunt.initConfig({
|
||||
concat: {
|
||||
'build/MIDI.js': "./js/**"
|
||||
'build/MIDI.js': [
|
||||
"./js/MIDI/AudioDetect.js",
|
||||
"./js/MIDI/LoadPlugin.js",
|
||||
"./js/MIDI/Plugin.js",
|
||||
"./js/MIDI/Player.js",
|
||||
"./js/Window/DOMLoader.XMLHttp.js", // req when using XHR
|
||||
"./js/Window/DOMLoader.script.js", // req otherwise
|
||||
// "./js/Color/SpaceW3.js", // optional
|
||||
// "./js/MusicTheory/Synesthesia.js", // optional
|
||||
// "./js/Widgets/Loader.js", // optional
|
||||
// "./js/Window/Event.js" // optional
|
||||
]
|
||||
},
|
||||
min: {
|
||||
'build/MIDI.min.js': ['build/MIDI.js']
|
||||
'build/MIDI.min.js': [
|
||||
'build/MIDI.js'
|
||||
]
|
||||
}
|
||||
});
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue