mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 01:11:41 +00:00
[API] Simplify RequireJS config
This commit is contained in:
parent
de53247d56
commit
52579fefe1
6
main.js
6
main.js
@ -23,9 +23,9 @@
|
|||||||
|
|
||||||
requirejs.config({
|
requirejs.config({
|
||||||
"paths": {
|
"paths": {
|
||||||
"legacyRegistry": "./src/legacyRegistry",
|
"legacyRegistry": "src/legacyRegistry",
|
||||||
"angular": "./platform/framework/lib/angular.min",
|
"angular": "platform/framework/lib/angular.min",
|
||||||
"angular-route": "./platform/framework/lib/angular-route.min",
|
"angular-route": "platform/framework/lib/angular-route.min",
|
||||||
"moment": 'platform/telemetry/lib/moment.min',
|
"moment": 'platform/telemetry/lib/moment.min',
|
||||||
"moment-duration-format": 'platform/features/clock/lib/moment-duration-format',
|
"moment-duration-format": 'platform/features/clock/lib/moment-duration-format',
|
||||||
"uuid": 'platform/core/lib/uuid'
|
"uuid": 'platform/core/lib/uuid'
|
||||||
|
@ -21,17 +21,6 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*global define, window, requirejs*/
|
/*global define, window, requirejs*/
|
||||||
|
|
||||||
requirejs.config({
|
|
||||||
"shim": {
|
|
||||||
"../lib/angular.min": {
|
|
||||||
"exports": "angular"
|
|
||||||
},
|
|
||||||
"../lib/angular-route.min": {
|
|
||||||
"deps": [ "../lib/angular.min" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the framework layer, which handles the loading of bundles
|
* Implements the framework layer, which handles the loading of bundles
|
||||||
* and the wiring-together of the extensions they expose.
|
* and the wiring-together of the extensions they expose.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user