RAML loader for webpack.
Converts a RAML specification into a CommonJS module using raml-js-parser.
import MyAPI from "./api/MyAPI.raml";
console.warn('the title of the API is', MyAPI.title);
The recommended configuration for webpack is:
{
module: {
loaders: [
{ test: /\.raml$/, loader: "raml" }
]
}
}
npm install raml-loader