-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.js
40 lines (37 loc) · 2.07 KB
/
bootstrap.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
requirejs.config({
baseUrl: '/dist',
paths: {
jquery: '//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min',
waitForImages: '/bower_components/waitForImages/dist/jquery.waitforimages.min',
TweenLite: "/bower_components/gsap/src/minified/TweenLite.min",
TweenMax: "/bower_components/gsap/src/minified/TweenMax.min",
scrollTo: "/bower_components/gsap/src/minified/plugins/ScrollToPlugin.min",
isMobile: "/bower_components/isMobile/isMobile.min",
actual: "/bower_components/jquery.actual/jquery.actual.min",
Hammer: "/bower_components/hammerjs/hammer.min",
// Utils functions and classes
"utils/utils": "/bower_components/pageblock/dist/utils/utils",
"utils/polyfills": "/bower_components/pageblock/dist/utils/polyfills",
"utils/gaTrackErr": "/bower_components/pageblock/dist/utils/gaTrackErrors",
"utils/debounce": "/bower_components/pageblock/dist/utils/debounce",
"utils/scroll": "/bower_components/pageblock/dist/utils/scroll",
"utils/gaTrackErrors": "/bower_components/pageblock/dist/utils/gaTrackErrors",
"utils/bootstrapMedia": "/bower_components/pageblock/dist/utils/bootstrapMedia",
// Include current page-block sources from their location in bower_components
// if you are using bower to fetch this lib.
"state": "/bower_components/pageblock/dist/state",
"router": "/bower_components/pageblock/dist/router",
"graphicLoader": "/bower_components/pageblock/dist/graphicLoader",
"abstract-nav": "/bower_components/pageblock/dist/abstract-nav",
"abstract-page": "/bower_components/pageblock/dist/abstract-page",
"abstract-block": "/bower_components/pageblock/dist/abstract-block",
// If you want to use example Page and Home classes in your project
// "pages/page": "/bower_components/pageblock/dist/pages/page"
}
});
// requirejs.onError = function (err) {
// console.log(err.requireType);
// console.log('modules: ' + err.requireModules);
// throw err;
// };
require(['main']);