Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 618 Bytes

File metadata and controls

35 lines (23 loc) · 618 Bytes

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