Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 386 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 386 Bytes

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.