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

21 lines
503 B
JavaScript
Raw Normal View History

/* eslint-disable @typescript-eslint/naming-convention */
2020-06-25 09:41:58 +02:00
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({ SIMAPP_ENABLED: "" })],
2020-06-25 09:41:58 +02:00
},
];