0.0.1 • Published 9 years ago
raml-loader v0.0.1
raml-loader
RAML loader for webpack.
Converts a RAML specification into a CommonJS module using raml-js-parser.
Usage
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