Skip to content

Instantly share code, notes, and snippets.

@daffl
Created December 9, 2013 22:49
Show Gist options
  • Select an option

  • Save daffl/7882490 to your computer and use it in GitHub Desktop.

Select an option

Save daffl/7882490 to your computer and use it in GitHub Desktop.
RequireJS development index.html configuration
<script src="components/requirejs/require.js"></script>
<script type="text/javascript">
require.config({
paths : {
jquery : "components/jquery/jquery",
can: "components/canjs/amd/can",
modal: "components/bootstrap/js/modal",
lodash: "components/lodash/dist/lodash"
},
shim: {
modal: {
deps: ['jquery'],
exports: '$'
}
}
});
define('views', function() {});
require(['app/index']);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment