UNPKG

asciidoctor-chunker

Version:

Creates chunked (multi-page) HTML from Asciidoctor's single HTML file with supporting the fine-tuned splits in chapters, sections and any depth of subsections.

29 lines (26 loc) 644 B
const path = require('path'); const webpack = require('webpack'); const ShebangPlugin = require('webpack-shebang-plugin'); // inject version into src/CommandOption.mjs with DefinePlugin const version = JSON.stringify(require('./package.json').version); module.exports = { mode: 'production', target: 'node', entry: './src/index.mjs', output: { path: path.resolve(__dirname, 'dist'), filename: 'asciidoctor-chunker.js', }, plugins: [ new webpack.DefinePlugin({ __VERSION__: version, }), new ShebangPlugin() ], module: { rules: [{ test: /\.css$/i, type: 'asset/source', }], }, };