vue-cli-plugin-yaml
Add YAML support to Webpack using yaml-loader
Install
yarn add --dev vue-cli-plugin-yaml
There is no need to configure anything else
Usage
# src/config.yml apiKey: abcd
// src/main.js console // { "apiKey": "abcd" } console // "abcd"