Import `.yml` files in your [next.js] project
npm install next-plugin-yaml.yml files in your [next.js] project. ``sh`
yarn add --dev next-plugin-yaml
`js
// 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.
[next.js]: https://nextjs.org/
[js-yaml-loader]: https://github.com/wwilsman/js-yaml-loader