1
0
Fork 0
zmodemjs/webpack.config.js

29 lines
616 B
JavaScript
Raw Permalink Normal View History

"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'
})
]
}