-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo.js
More file actions
36 lines (33 loc) · 1005 Bytes
/
demo.js
File metadata and controls
36 lines (33 loc) · 1005 Bytes
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
// For any third party dependencies, like jQuery, place them in the lib folder.
// Configure loading modules from the lib directory,
// except for 'app' ones, which are in a sibling
// directory.
requirejs.config({
enforceDefine: true,
baseUrl: 'js/lib',
paths: {
jquery: [
'https://code.jquery.com/jquery-3.2.1.min',
'jquery-3.2.1.min',
],
lodash: [
'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min',
'lodash.min',
],
},
});
define(['js/utility/find-get-param.js'], function(findGetParameter) {
var disable_cache = findGetParameter('disable_cache');
var debug = findGetParameter('debug');
var config = {
urlArgs: disable_cache ? "time=" + Date.now() : '',
paths: {
}
};
requirejs.config(config);
// Start loading the main app file. Put all of
// your application logic in there.
requirejs([
'js/main-demo.js',
]);
});