# webpack-asciidoctor-plugin

> WebPack Plugin for AsciiDoc

Latest version **0.2.1** (published 2019-07-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-asciidoctor-plugin
pnpm add webpack-asciidoctor-plugin
yarn add webpack-asciidoctor-plugin
bun add webpack-asciidoctor-plugin
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2019-07-02 |
| First published | 2019-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 5 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Martin Reinhardt |
| Maintainers | hypery2k |
| Keywords | reveal.js, webpack, plugin, html, html-webpack-plugin |

## Links

- npm: https://www.npmjs.com/package/webpack-asciidoctor-plugin
- Repository: https://github.com/hypery2k/webpack-asciidoctor-plugin
- Homepage: https://github.com/hypery2k/webpack-asciidoctor-plugin#readme
- Issues: https://github.com/hypery2k/webpack-asciidoctor-plugin/issues
- npm.io page: https://npm.io/package/webpack-asciidoctor-plugin

## Dependencies (5)

- [glob](https://npm.io/package/glob.md) ^7.1.4
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [parse5](https://npm.io/package/parse5.md) ^5.1.0
- [asciidoctor.js](https://npm.io/package/asciidoctor.js.md) ^1.5.9

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2019-07-02
- 0.2.0 — 2019-07-01
- 0.1.3 — 2019-06-27
- 0.1.2 — 2019-06-27
- 0.1.1 — 2019-06-27
- 0.1.0 — 2019-06-27

## README

# WebPack Plugin for AsciiDoc

[![Build Status](https://travis-ci.org/hypery2k/webpack-asciidoctor-plugin.svg?branch=master)](https://travis-ci.org/hypery2k/webpack-asciidoctor-plugin) 
![npm](https://img.shields.io/npm/v/webpack-asciidoctor-plugin.svg)

Instead of the [AsciiDoctor-Loader](https://github.com/exaptis/asciidoctor-loader) this plugin can be used together with the [HTML WebPack] plugin to load AsciiDoc fragments via `data-external`, e.g. for reveal.js Integration:

```
<section data-external="content/course.adoc"> </section>
```
## Config

Use the following

```
const AsciiDocPlugin = require('webpack-asciidoctor-plugin');
const asciidoctorRevealjs = require('asciidoctor-reveal.js');

asciidoctorRevealjs.register();

return {

..


  return {
   ...
    plugins: [

      new AsciiDocPlugin({
        adocOptions: { safe: 'safe', backend: 'revealjs', base_dir: '..' }, // for reveal.js use this backed
        inline: false // set to true, if you want to replace the data-external section with the converted HTML
      }),
     
    ]
  };

}

```

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