Skip to content

uwx-node-modules/tiny-yaml-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiny-yaml-loader

Webpack loader for YAML files that directly gives you an object to work with.

Install

npm install --save-dev uwx/tiny-yaml-loader

Usage

Inline

const json = require('tiny-yaml-loader!./file.yml');

Configuration (recommended)

main.js

const json = require('./file.yml');

webpack.config.js

module.exports = {
  module: {
    loaders: [
      {
        test: /\.yml$/,
        loader: 'tiny-yaml-loader'
      }
    ]
  }
}

Based on okonet/yaml-loader and webpack-contrib/json-loader, with code from francois2metz/yaml-loader/add_tests

About

lightweight YAML loading/parsing module for webpack

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%