Skip to content
/ edan Public

Expose options passed to app as `appInfo.options` and `app.config.appOptions`

License

Notifications You must be signed in to change notification settings

wsw0108/edan

Repository files navigation

edan

Expose options passed to app as appInfo.options and app.config.appOptions.

Usage

you can use options passed to an app like below:

// config/config.${env}.js
module.exports = appInfo => {
  const config = {};
  config.something = appInfo.options.something;
  return config;
}

or

// app.js
module.exports = app => {
  console.log(app.config.appOptions);
}

License

MIT

About

Expose options passed to app as `appInfo.options` and `app.config.appOptions`

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published