This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

vite-plugin-yaml
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Package Sidebar

Install

npm i vite-plugin-yaml

Weekly Downloads

700

Version

1.0.5

License

MIT

Unpacked Size

2.97 kB

Total Files

5

Last publish

Collaborators

  • clemvnt