opensourcecu / raml-loader

RAML loader for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raml-loader

RAML loader for webpack.

Converts a RAML specification into a CommonJS module using raml-js-parser.

Usage

Documentation: Using loaders

Example

import MyAPI from "./api/MyAPI.raml";

console.warn('the title of the API is', MyAPI.title);

Recommended configuration

The recommended configuration for webpack is:

{
  module: {
    loaders: [
      { test: /\.raml$/, loader: "raml" }
    ]
  }
}

Install

npm install raml-loader

About

RAML loader for webpack

License:MIT License


Languages

Language:JavaScript 100.0%