vue-cli-plugin-yaml

1.0.2 • Public • Published

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
 
import config from './config.yml' 
import config from './config'       // extension can be omitted
console.log(config)                 // { "apiKey": "abcd" }
 
import { apiKey } from '@/config'   // Using @ alias for src
console.log(apiKey)                 // "abcd"

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i vue-cli-plugin-yaml

    Weekly Downloads

    10,072

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.46 kB

    Total Files

    4

    Last publish

    Collaborators

    • edus44