angular-docgen-loader
v1.1.0
Published
A loader for webpack that allows importing files as a String
Downloads
2
Readme
[![tests][tests]][tests-url]
angular-docgen-loader
A loader that works in conjunction with Angular Docgen to load component definitions as a JSON object.
This repo is a direct fork of the webpack raw loader. Any setup relating to raw loader should also work for this loader.
Getting Started
$ npm install angular-docgen angular-docgen-loader --save-dev
Then add the loader to your webpack
config. For example:
file.js
import ComponentDoc from '!angular-docgen-loader!./component.ts';
webpack.config.js
// webpack.config.js
module.exports = {
rules: [
{
test: /!angular-docgen-loader!/,
use: "angular-docgen-loader"
}
]
};
Examples
Contributing
Please take a moment to read our contributing guidelines if you haven't yet done so.