summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
blob: be591cfa573c3c462612d95e1cdf642ab2a3768a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"use strict";

const path = require("path");
const MinifyPlugin = require("babel-minify-webpack-plugin");

const JsDocPlugin = require('jsdoc-webpack-plugin');

module.exports = {
    entry: {
        zmodem: [ "./src/zmodem_browser.js" ],
        "zmodem.devel": [ "./src/zmodem_browser.js" ],
    },
    output: {
        path: path.resolve( __dirname, "dist" ),
        filename: "[name].js",
    },
    plugins: [
        new MinifyPlugin(
            null,
            {
                test: /zmodem\.js$/,
            }
        ),
        new JsDocPlugin({
            conf: './jsdoc.json'
        })
    ]
}