An open API service indexing awesome lists of open source software.

https://github.com/hypery2k/webpack-asciidoctor-plugin


https://github.com/hypery2k/webpack-asciidoctor-plugin

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

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:

```

```
## 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
}),

]
};

}

```