1.1.0 • Published 5 years ago

angular-docgen-loader v1.1.0

Weekly downloads
49
License
MIT
Repository
github
Last release
5 years ago

tests

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.

CONTRIBUTING

License

MIT