2021-05-19 17:46:21 +02:00
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
2020-09-15 12:28:02 +02:00
|
|
|
const glob = require("glob");
|
|
|
|
const path = require("path");
|
2022-01-25 17:57:02 +01:00
|
|
|
const webpack = require("webpack");
|
2020-09-15 12:28:02 +02:00
|
|
|
|
|
|
|
const target = "web";
|
|
|
|
const demodir = path.join(__dirname, "dist", "demo");
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
// bundle used for Ledger demo
|
|
|
|
target: target,
|
2020-09-15 18:51:11 +02:00
|
|
|
entry: glob.sync("./build/demo/web.js"),
|
2020-09-15 12:28:02 +02:00
|
|
|
output: {
|
|
|
|
path: demodir,
|
|
|
|
filename: "ledger.js",
|
|
|
|
},
|
2022-01-25 17:57:02 +01:00
|
|
|
plugins: [
|
|
|
|
new webpack.ProvidePlugin({
|
|
|
|
Buffer: ["buffer", "Buffer"],
|
|
|
|
}),
|
|
|
|
],
|
2021-04-14 17:35:53 +02:00
|
|
|
resolve: {
|
|
|
|
fallback: {
|
2021-05-19 17:46:21 +02:00
|
|
|
buffer: false,
|
|
|
|
crypto: false,
|
|
|
|
events: false,
|
|
|
|
path: false,
|
|
|
|
stream: false,
|
|
|
|
string_decoder: false,
|
2021-04-14 17:35:53 +02:00
|
|
|
},
|
|
|
|
},
|
2020-09-15 12:28:02 +02:00
|
|
|
},
|
|
|
|
];
|