Created
October 18, 2011 10:36
-
-
Save salomvary/1295129 to your computer and use it in GitHub Desktop.
requirejs test
This file contains 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
({ | |
appDir: '.', | |
baseUrl: './', | |
dir: '../build/', | |
optimize: 'none', | |
modules: [ | |
{ | |
name: 'one', | |
excludeShallow: ['four', 'five'] | |
}, | |
{ | |
name: 'four', | |
exclude: ['one'] | |
} | |
] | |
}) |
This file contains 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
define(function() { | |
return {Five: function() {}}; | |
}); |
This file contains 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
define(['two', 'three', 'five'], function(one, two, three) { | |
return {Four: function() {}}; | |
}); |
This file contains 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
require(['two', 'three', 'four'], function(two, three, four) { | |
var One = function() {}; | |
}); |
This file contains 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
one | |
two | |
three | |
four | |
two | |
three | |
five |
This file contains 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
define(function() { | |
return {Three:function() {}}; | |
}); |
This file contains 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
define(function() { | |
return {Two: function() {}}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment