Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 941 Bytes

build-configs.md

File metadata and controls

26 lines (15 loc) · 941 Bytes

Build Configs (web)

What are build configs and which build configs are available?

See the general information on build configs.

Using a Build Config

Build configs are used in two different places: In the javascript code during runtime and in webpack during the build process.

Runtime (Javascript)

For each build config there is a script in the package.json to ease the process of starting the packager:

yarn start:<build config name>

For the standard development build config integreat-test-cms there is also the shortcut yarn start.

To access the values of the build config import buildConfig.ts.

Technical Information

The build config is loaded by webpack during bundling and compiling the app. It is then passed as __BUILD_CONFIG__ environment variable to the javascript code.