1.0.5 • Published 3 years ago

vite-plugin-yaml v1.0.5

Weekly downloads
37
License
MIT
Repository
-
Last release
3 years ago

vite-plugin-yaml

A Vite plugin for import YAML/YML files as ES6 modules.

Like @rollup/plugin-yaml but for Vite.

Install

Using npm :

npm i -D vite-plugin-yaml

Using yarn :

yarn add -D vite-plugin-yaml

Configuration

vite.config.js

module.exports = {
  plugins: [require('vite-plugin-yaml')]
}

vite.config.ts

const config = {
  plugins: [require('vite-plugin-yaml')]
}

export default config

Usage

You can now import YAML/YML files.

import object from './object.yml'

Check the playground for an example of use.

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago