getAppConfig
Retrieve the contents of the config.json file.

Returns

(Promise<object>): A promise that fulfills with a plain object.

Example

1
import lampix from '@lampix/core';
2
3
const initialize = (config) => {
4
// do something with the data in config.json
5
};
6
7
lampix.getAppConfig()
8
.then((config) => {
9
initialize(config);
10
});
Copied!

Notes

See config.json of the production application structure for details on what config.json is used for.
Copy link