Last active
September 25, 2015 16:38
-
-
Save deptno/edb0c9e5e09a85e87a80 to your computer and use it in GitHub Desktop.
Test html bolilerplate with requirejs
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.20/require.js" data-main="test.js"></script> | |
<script></script> | |
<title>Test</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
requirejs.config({ | |
paths: { | |
text: "//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.12/text" | |
} | |
}); | |
require([ | |
], main); | |
function main() { | |
console.log('main'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment