-
Notifications
You must be signed in to change notification settings - Fork 0
/
require-config.js
47 lines (43 loc) · 1.45 KB
/
require-config.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
40
41
42
43
44
45
46
47
/**
*
* @ Develop Desc : 1. requirejs 의존성 설정
* @ Author : Justin Jang (<a mailto="prayer525@gmail.com">prayer525@gmail.com</a>)
* @ Version : Release 1.0
* @ Develop Date : 15 SEP 2016
* @ Change History : 23 AUG 2016 - initial
*/
/**
* requirejs 설정
* 모듈 의존성 정의을 한다.
*/
(function(){
'use strict';
require.config({
paths: {
'jquery': ['bower_components/jquery/dist/jquery.min'],
'bootstrap': ['bower_components/bootstrap/dist/js/bootstrap.min'],
'highlight':['javascripts/highlight'],
'swipe':['javascripts/swipe'],
// 'datetimepicker':['bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min'],
// 'dataTable':['bower_components/datatables/jquery.dataTables.min'],
// 'dataTableBoot':['bower_components/datatables/dataTables.bootstrap.min'],
// 'sortable':['js/jquery.sortable'],
// 'textEditor':['bower_components/summernote/dist/summernote'],
'main': ['javascripts/main']
},
shim: {
'bootstrap': ['jquery']
// 'common':['jquery'],
// 'sortable':['jquery'],
// 'dataTableBoot':['dataTable']
},
baseUrl: './'
});
// , "cordova", 'moment', 'datetimepicker', 'dataTable', 'dataTableBoot', 'textEditor', 'bootstrap', 'moment', 'datetimepicker'
require(['jquery','bootstrap','highlight', 'swipe'], function(){
require(['main']);
// require(['sortable'], function(){
// require(['common']);
// })
});
}).call(this);