summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-20 06:01:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-20 06:19:39 +0000
commit56eec1de7018759c0ec251dba4455c18f73c3bbd (patch)
tree3aeb2d10356530bc2cc3f24e74f41048a13885b4 /webpack.config.js
parentInitial commit. (diff)
downloadzmodemjs-56eec1de7018759c0ec251dba4455c18f73c3bbd.tar.xz
zmodemjs-56eec1de7018759c0ec251dba4455c18f73c3bbd.zip
Adding upstream version 0.1.10+dfsg.upstream/0.1.10+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--webpack.config.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..be591cf
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,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'
+ })
+ ]
+}