mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
27 lines
539 B
JavaScript
27 lines
539 B
JavaScript
![]() |
const glob = require("glob");
|
||
|
const path = require("path");
|
||
|
|
||
|
const target = "web";
|
||
|
const distdir = path.join(__dirname, "dist", "web");
|
||
|
|
||
|
module.exports = [
|
||
|
{
|
||
|
// bundle for WebWorker tests
|
||
|
target: target,
|
||
|
entry: "./build/workers/dummyservice.worker.js",
|
||
|
output: {
|
||
|
path: distdir,
|
||
|
filename: "dummyservice.worker.js",
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
// bundle used for Karma tests
|
||
|
target: target,
|
||
|
entry: glob.sync("./build/**/*.spec.js"),
|
||
|
output: {
|
||
|
path: distdir,
|
||
|
filename: "tests.js",
|
||
|
},
|
||
|
},
|
||
|
];
|