# angular-docgen-loader

> A loader for webpack that allows importing files as a String

Latest version **1.1.0** (published 2019-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-docgen-loader
pnpm add angular-docgen-loader
yarn add angular-docgen-loader
bun add angular-docgen-loader
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-04-12 |
| First published | 2019-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 6.9.0 |
| Dependencies | 3 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andy Polhill @andy_polhill |
| Maintainers | thatguynamedandy |
| Keywords | webpack |

## Links

- npm: https://www.npmjs.com/package/angular-docgen-loader
- Repository: https://github.com/thatguynamedandy/angular-docgen-loader
- Issues: https://github.com/thatguynamedandy/angular-docgen-loader/issues
- npm.io page: https://npm.io/package/angular-docgen-loader

## Dependencies (3)

- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0
- [schema-utils](https://npm.io/package/schema-utils.md) ^1.0.0
- [angular-docgen](https://npm.io/package/angular-docgen.md) ^1.0.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-04-12
- 1.0.0-alpha.0 — 2019-03-19

## README

<div align="center">
  <img width="200" height="200" src="/assets/angular.svg">
  <a href="https://github.com/webpack/webpack">
    <img width="200" height="200"
      src="https://webpack.js.org/assets/icon-square-big.svg">
  </a>
</div>

[![tests][tests]][tests-url]

# angular-docgen-loader

A loader that works in conjunction with [Angular Docgen](https://github.com/thatguynamedandy/angular-docgen) to load component definitions as a JSON object.

This repo is a direct fork of the [webpack raw loader](https://github.com/webpack/raw-loader). Any setup relating to raw loader should also work for this loader.

## Getting Started

```console
$ npm install angular-docgen angular-docgen-loader --save-dev
```

Then add the loader to your `webpack` config. For example:

**file.js**

```js
import ComponentDoc from '!angular-docgen-loader!./component.ts';
```

**webpack.config.js**

```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](./.github/CONTRIBUTING.md)

## License

#### [MIT](./LICENSE)

---
_Source: https://npm.io/package/angular-docgen-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
