Add require.config.js
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 3 May 2015 21:44:53 +0000 (23:44 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 3 May 2015 21:44:53 +0000 (23:44 +0200)
com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/js/require.config.js [new file with mode: 0644]

index f9da74a8d0f7511bef0eddcb49ebba987262108b..02685ae5d0bebb927ce0dd23aaf944aa8e090f6a 100644 (file)
        });
 </script>
 
+<script data-relocate="true" src="{@$__wcf->getPath()}js/require.config.js"></script>
 <script data-relocate="true">
        requirejs.config({
-               baseUrl: '{@$__wcf->getPath()}js',
-               paths: {
-                       enquire: '3rdParty/enquire',
-                       favico: '3rdParty/favico'
-               },
-               map: {
-                       '*': {
-                               'CallbackList': 'WoltLab/WCF/CallbackList',
-                               'Core': 'WoltLab/WCF/Core',
-                               'Dictionary': 'WoltLab/WCF/Dictionary',
-                               'DOM/Traverse': 'WoltLab/WCF/DOM/Traverse',
-                               'DOM/Util': 'WoltLab/WCF/DOM/Util',
-                               'EventHandler': 'WoltLab/WCF/Event/Handler',
-                               'UI/Alignment': 'WoltLab/WCF/UI/Alignment',
-                               'UI/SimpleDropdown': 'WoltLab/WCF/UI/Dropdown/Simple'
-                       }
-               }
+               baseUrl: '{@$__wcf->getPath()}js'
        });
        
        /*require(function(require) {
diff --git a/wcfsetup/install/files/js/require.config.js b/wcfsetup/install/files/js/require.config.js
new file mode 100644 (file)
index 0000000..7b8e414
--- /dev/null
@@ -0,0 +1,18 @@
+requirejs.config({
+       paths: {
+               enquire: '3rdParty/enquire',
+               favico: '3rdParty/favico'
+       },
+       map: {
+               '*': {
+                       'CallbackList': 'WoltLab/WCF/CallbackList',
+                       'Core': 'WoltLab/WCF/Core',
+                       'Dictionary': 'WoltLab/WCF/Dictionary',
+                       'DOM/Traverse': 'WoltLab/WCF/DOM/Traverse',
+                       'DOM/Util': 'WoltLab/WCF/DOM/Util',
+                       'EventHandler': 'WoltLab/WCF/Event/Handler',
+                       'UI/Alignment': 'WoltLab/WCF/UI/Alignment',
+                       'UI/SimpleDropdown': 'WoltLab/WCF/UI/Dropdown/Simple'
+               }
+       }
+});