next-plugin-yaml

1.0.1 • Public • Published

Next.js + YAML

Import .yml files in your next.js project.

Installation

yarn add --dev next-plugin-yaml

Usage

// next.config.js
const withYaml = require('next-plugin-yaml');
 
module.exports = withYaml({
 // other config here
});

Accepts both .yml and .yaml file extensions. Uses js-yaml-loader underneath.

License

MIT

/next-plugin-yaml/

    Package Sidebar

    Install

    npm i next-plugin-yaml

    Weekly Downloads

    2,960

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.75 kB

    Total Files

    8

    Last publish

    Collaborators

    • tsdzw