cosmjs/packages/socket/webpack.web.config.js

27 lines
611 B
JavaScript
Raw Permalink Normal View History

/* 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",
},
2021-05-19 17:46:21 +02:00
plugins: [new webpack.EnvironmentPlugin({ SOCKETSERVER_ENABLED: "" })],
2021-04-14 17:35:53 +02:00
resolve: {
fallback: {
2021-05-19 17:46:21 +02:00
assert: false,
child_process: false,
2021-04-14 17:35:53 +02:00
},
},
},
];