vue-cli-plugin-yaml

Add YAML support to Webpack using yaml-loader
223,919 9
Install
npm install vue-cli-plugin-yaml
Latest Version:1.0.2
License:MIT
Last Updated:Mar 4, 2023
Links: GitHub  ·  npm
Maintainer: edus44

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"

Related Packages

vue-cli-plugin-yaml-loader

Add support for YAML in your Webpack config.

4,405 0
duplicate-dependencies-webpack-plugin

webpack plugin to find duplicated dependencies from your bundle

332,104 6
vue-cli-plugin-lodash

vue-cli plugin for lodash

4,260 4
@phiny1/vue-cli-plugin-p11n

Vue CLI 3 plugin to pluginize your Vue project

3,992
@originjs/webpack-to-vite

convert a webpack project to a vite project

3,588 747

Version History

Version Released License
1.0.2 MIT
1.0.1 MIT
1.0.0 MIT