Skip to content

Instantly share code, notes, and snippets.

@deptno
Last active September 25, 2015 16:38
Show Gist options
  • Save deptno/edb0c9e5e09a85e87a80 to your computer and use it in GitHub Desktop.
Save deptno/edb0c9e5e09a85e87a80 to your computer and use it in GitHub Desktop.
Test html bolilerplate with requirejs
<!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>
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