bug: use production for webpack (#81)

This commit is contained in:
Sasha 2024-07-26 00:53:56 +02:00 committed by GitHub
parent fcbf3539e0
commit 2e55c4c548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -4,8 +4,8 @@ import {
createDecoder,
DecodedMessage,
waitForRemotePeer,
DefaultPubsubTopic,
LightNode,
utils
} from "@waku/sdk";
import { Type, Field } from "protobufjs";
@ -87,7 +87,7 @@ export async function app(telemetryClient: TelemetryClient) {
sequenceTotal: sequenceTotal,
sequenceIndex: sequenceIndex,
contentTopic: DEFAULT_CONTENT_TOPIC,
pubsubTopic: DefaultPubsubTopic,
pubsubTopic: utils.contentTopicToPubsubTopic(DEFAULT_CONTENT_TOPIC),
},
]);
@ -145,7 +145,7 @@ export async function app(telemetryClient: TelemetryClient) {
sequenceTotal: sequencedMessage.total,
sequenceIndex: sequencedMessage.index,
contentTopic: DEFAULT_CONTENT_TOPIC,
pubsubTopic: DefaultPubsubTopic,
pubsubTopic: utils.contentTopicToPubsubTopic(DEFAULT_CONTENT_TOPIC),
},
]);

View File

@ -23,7 +23,11 @@ module.exports = {
},
],
},
mode: "development",
mode: "production",
devtool: "source-map",
node: {
global: false
},
plugins: [
new CopyWebpackPlugin({
patterns: ["index.html", "favicon.ico", "favicon.png", "manifest.json"],