cockpit.js: Manifests

cockpit.js: Manifests — Manifest info

Loading Manifests

You can load manifest info by loading the ./manifest.json file in your package. In addition there is a shortcut: if you're using AMD loading you can use a special module id to access all the manifests in one shot:

define([
    'manifests',
    'other.dep'
], function(manifests, other) {
    var manifest = manifests['package'];
});