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.