vue-cli plugin to add Platform.sh configuration files to a Vue.js project
npm install vue-cli-plugin-platformshPlatform.sh plugin for @vue/cli 3.0.
This plugin will generate the Platform.sh configuration files for your Vue.js project using Vue CLI.
First you need to install @vue/cli globally (follow the instructions here).
If you start a new project, create the project with Vue CLI:
``bash`
vue create my-vue-project
Add the Platform.sh plugin:
`bash`
cd my-vue-project
vue add platformsh
The plugin will automatically extract the Platform.sh environment variables.
To fetch those, you simply need to import the following package:
`bash``
import platformshVar from 'platformsh_variables'