https://github.com/hypery2k/webpack-asciidoctor-plugin
https://github.com/hypery2k/webpack-asciidoctor-plugin
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hypery2k/webpack-asciidoctor-plugin
- Owner: hypery2k
- License: mit
- Created: 2019-06-27T05:43:31.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-12-15T02:29:27.000Z (over 1 year ago)
- Last Synced: 2024-04-14T11:10:15.950Z (about 1 year ago)
- Language: JavaScript
- Size: 2.06 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 55
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# WebPack Plugin for AsciiDoc
[](https://travis-ci.org/hypery2k/webpack-asciidoctor-plugin)
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:
```
```
## ConfigUse 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
}),
]
};}
```