cosmjs/packages/socket/webpack.web.config.js
2021-05-19 17:54:52 +02:00

27 lines
611 B
JavaScript

/* eslint-disable @typescript-eslint/naming-convention */
const glob = require("glob");
const path = require("path");
const webpack = require("webpack");
const target = "web";
const distdir = path.join(__dirname, "dist", "web");
module.exports = [
{
// bundle used for Karma tests
target: target,
entry: glob.sync("./build/**/*.spec.js"),
output: {
path: distdir,
filename: "tests.js",
},
plugins: [new webpack.EnvironmentPlugin({ SOCKETSERVER_ENABLED: "" })],
resolve: {
fallback: {
assert: false,
child_process: false,
},
},
},
];