Hops Config
Please see the main Hops Readme for general information and a Getting Started Guide.
This is a package that exposes your applications configuration and is mostly here for legacy reasons. It has thus been deprecated as of version 12 of Hops and will be removed with the next major release.
Please use withConfig
or useConfig
to access the configuration inside your application's React components.
Inside mixins you can access the config through this.config
.
Installation
Add this package as a dependency to your project:
npm install --save hops-config
If you don't already have an existing Hops project read this section on how to set up your first Hops project.
Usage
import
/ require
this package to access the configuration that you are interested in.
import config from 'hops-config';
console.log(config.basePath);