0.0.1 • Published 9 years ago

raml-loader v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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

0.0.1

9 years ago