snowpack-plugin-yaml

1.0.4 • Public • Published

snowpack-plugin-yaml

A Snowpack plugin to convert YAML files to ESM.

First, add snowpack-plugin-yaml to your snowpack.config.js:

  plugins: [
    ...
    "snowpack-plugin-yaml",
  ],

Then, import your YAML file like so:

import test from "./content/test.yaml";

This is a fork of snowpack-plugin-toml by amdg.

Readme

Keywords

Package Sidebar

Install

npm i snowpack-plugin-yaml

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

8.17 kB

Total Files

7

Last publish

Collaborators

  • ksmarty