cosmjs/packages/faucet-client/webpack.web.config.js
2021-04-14 17:36:30 +02:00

21 lines
503 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({ FAUCET_ENABLED: "" })],
},
];