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

25 lines
537 B
JavaScript
Raw Permalink Normal View History

2021-04-14 19:05:09 +02:00
/* eslint-disable @typescript-eslint/naming-convention */
2020-06-05 13:58:22 +02:00
const glob = require("glob");
const path = require("path");
2021-04-14 19:05:09 +02:00
const webpack = require("webpack");
2020-06-05 13:58:22 +02:00
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-04-14 19:05:09 +02:00
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
2020-06-05 13:58:22 +02:00
},
];