Last active
December 12, 2015 04:18
-
-
Save mkuklis/4712839 to your computer and use it in GitHub Desktop.
requirejs+flight
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 in main.js | |
require.config({ | |
paths: { | |
jquery: 'components/jquery/jquery', | |
es5shim: 'components/es5-shim/es5-shim', | |
es5sham: 'components/es5-shim/es5-sham' | |
}, | |
map: { | |
'*': { | |
'flight/component': 'components/flight/lib/component', | |
} | |
}, | |
shim: { | |
'components/flight/lib/index': { | |
deps: ['jquery', 'es5shim', 'es5sham'] | |
}, | |
'app/js/app': { | |
deps: ['components/flight/lib/index'] | |
} | |
} | |
}); | |
require(['app/js/app'], function (App) { | |
App.initialize(); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for layout:
▾ app/
▸ css/
▾ js/
app.js
▾ components/
▸ es5-shim/
▸ flight/
▸ jquery/
▸ requirejs/
index.html
main.js