Skip to content

Build environment

Charles de Beauchesne edited this page Apr 4, 2019 · 1 revision

Build environment is a set of parameters that configure the UI build.

They are defined in vue.config.js file on root directory, and parameters are available on front side, into the @/js/config module.

local

npm run serve

This environment is the development environment. It comes with hot-reload feature : modify a file, save it, and you'll see your modification in live!. It uses by default demo API, and it's read-write.

github

npm run build:github

It's purpose is to be deployed on github pages.

This environment also checks bundles sizes on build step.

camptocamp

npm run build

The official build. Prod API, read-write, without API toogler.