1.0.1 • Published 6 years ago
next-plugin-yaml v1.0.1
Next.js + YAML
Import .yml files in your next.js project.
Installation
yarn add --dev next-plugin-yamlUsage
// 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.