Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomasz-sodzawiczny/next-plugin-yaml

Import .yml files in your next.js project
https://github.com/tomasz-sodzawiczny/next-plugin-yaml

next nextjs plugin yaml

Last synced: 23 days ago
JSON representation

Import .yml files in your next.js project

Awesome Lists containing this project

README

        

# Next.js + YAML

[![NPM version][npm-img]][npm-url]
[![Build Status][build-img]][build-url]
[![License: MIT][mit-img]][mit-url]

Import `.yml` files in your [next.js] project.

## Installation

```sh
yarn add --dev next-plugin-yaml
```

## Usage

```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.

## License

[MIT][mit-url]

[next.js]: https://nextjs.org/
[js-yaml-loader]: https://github.com/wwilsman/js-yaml-loader

[mit-img]: https://img.shields.io/badge/License-MIT-blue.svg
[mit-url]: ./LICENSE
[npm-img]: https://img.shields.io/npm/v/next-plugin-yaml.svg
[npm-url]: https://www.npmjs.com/package/next-plugin-yaml
[build-img]: https://img.shields.io/travis/tomasz-sodzawiczny/next-plugin-yaml.svg
[build-url]: https://travis-ci.org/tomasz-sodzawiczny/next-plugin-yaml