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
3869
build/MIDI.js
3869
build/MIDI.js
File diff suppressed because it is too large
Load diff
2
build/MIDI.min.js
vendored
2
build/MIDI.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,13 +1,14 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns = "http://www.w3.org/1999/xhtml">
|
<html xmlns = "http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
|
<!-- midi-js -->
|
||||||
<script src="./js/MIDI/AudioDetect.js" type="text/javascript"></script>
|
<script src="./js/MIDI/AudioDetect.js" type="text/javascript"></script>
|
||||||
<script src="./js/MIDI/LoadPlugin.js" type="text/javascript"></script>
|
<script src="./js/MIDI/LoadPlugin.js" type="text/javascript"></script>
|
||||||
<script src="./js/MIDI/Plugin.js" type="text/javascript"></script>
|
<script src="./js/MIDI/Plugin.js" type="text/javascript"></script>
|
||||||
<script src="./js/MIDI/Player.js" type="text/javascript"></script>
|
<script src="./js/MIDI/Player.js" type="text/javascript"></script>
|
||||||
<script src="./js/Window/DOMLoader.XMLHttp.js" type="text/javascript"></script>
|
<script src="./js/Window/DOMLoader.XMLHttp.js" type="text/javascript"></script>
|
||||||
<script src="./js/Window/DOMLoader.script.js" type="text/javascript"></script>
|
<script src="./js/Window/DOMLoader.script.js" type="text/javascript"></script>
|
||||||
<!-- base64 packages -->
|
<!-- extras -->
|
||||||
<script src="./inc/Polyfill/Base64.js" type="text/javascript"></script>
|
<script src="./inc/Polyfill/Base64.js" type="text/javascript"></script>
|
||||||
<script src="./inc/WebMIDIAPI.js" type="text/javascript"></script>
|
<script src="./inc/WebMIDIAPI.js" type="text/javascript"></script>
|
||||||
<script src="./inc/base64binary.js" type="text/javascript"></script>
|
<script src="./inc/base64binary.js" type="text/javascript"></script>
|
||||||
|
|
17
grunt.js
17
grunt.js
|
@ -10,10 +10,23 @@
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
concat: {
|
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: {
|
min: {
|
||||||
'build/MIDI.min.js': ['build/MIDI.js']
|
'build/MIDI.min.js': [
|
||||||
|
'build/MIDI.js'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue