Skip to content

Instantly share code, notes, and snippets.

@nessup
Created May 9, 2014 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nessup/e1f763ff11d96f2c4694 to your computer and use it in GitHub Desktop.
Save nessup/e1f763ff11d96f2c4694 to your computer and use it in GitHub Desktop.
<!doctype html>
<head>
<!-- ... -->
<script src="bower_components/x-gif/dist/platform.js"></script>
<!-- ... -->
</head>
<body>
<!-- ... -->
<!-- build:js scripts/main.js -->
<script data-main="scripts/main" src="bower_components/requirejs/require.js"></script>
<!-- endbuild -->
<!-- ... -->
</body>
</html>
/*global require*/
'use strict';
require.config({
shim: {
// ...
},
paths: {
jquery: '../bower_components/jquery/dist/jquery',
// ...
}
});
require([
// ...
'jquery',
// ...
], function(/* ... */) {
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment