Skip to content

amishdev/yaml-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml-loader

Install

npm install amish-yaml-loader --save-dev or
yarn add amish-yaml-loader -D

Webpack config

// loaders
 module: {
        rules: [
            {
                test: /\.ya?ml$/,
                use: ['json-loader', 'amish-yaml-loader'],
            },
        ],
    },

Yaml

---
copy: this is some copy

Usage import data from '../path/to/data.yaml';

use with markdown

install json markdown loader npm install json-markdown-loader --save-dev or yarn add json-markdown-loader -D

Webpack config

module: {
        rules: [
            {
                test: /\.ya?ml$/,
                use: ['json-loader', 'json-markdown-loader', 'amish-yaml-loader'],
            },
        ],
    }

Yaml

---
content:
  type: markdown
  value: >
    ## Heading
    some content
     - list item
     - list item 2

import markdownContent from '../path/to/content.yaml';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published