Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tomasz-sodzawiczny/next-plugin-yaml
- Owner: tomasz-sodzawiczny
- License: mit
- Created: 2019-08-01T19:07:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T12:42:07.000Z (about 3 years ago)
- Last Synced: 2024-11-11T20:20:48.983Z (about 1 month ago)
- Topics: next, nextjs, plugin, yaml
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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