mirror of https://github.com/vacp2p/waku-ts.git
17 lines
351 B
JavaScript
17 lines
351 B
JavaScript
|
const path = require("path");
|
||
|
|
||
|
module.exports = {
|
||
|
mode: "production",
|
||
|
entry: {
|
||
|
index: path.resolve(__dirname, "dist", "cjs", "index.js"),
|
||
|
},
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, "dist", "umd"),
|
||
|
filename: "[name].min.js",
|
||
|
libraryTarget: "umd",
|
||
|
library: "Waku",
|
||
|
umdNamedDefine: true,
|
||
|
globalObject: "this",
|
||
|
},
|
||
|
};
|