raml-loader

0.0.1 • Public • Published

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

/raml-loader/

    Package Sidebar

    Install

    npm i raml-loader

    Weekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • trabianmatt