mirror of https://github.com/waku-org/waku-lab.git
bug: use production for webpack (#81)
This commit is contained in:
parent
fcbf3539e0
commit
2e55c4c548
|
@ -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),
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue