fix: update browser name to cloudevents. (#292)
* This updates the broswer based version to cloudevents instead of cloudevents-sdk. Fixes: #286 Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
parent
763838c89c
commit
48d182bc5f
|
@ -2,10 +2,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>CloudEvent Example</title>
|
||||
<script src="../../bundles/cloudevents-sdk.js"></script>
|
||||
<script src="../../bundles/cloudevents.js"></script>
|
||||
<script>
|
||||
const CloudEvent = window['cloudevents-sdk'].CloudEvent;
|
||||
const Version = window['cloudevents-sdk'].Version;
|
||||
const CloudEvent = window.cloudevents.CloudEvent;
|
||||
const Version = window.cloudevents.Version;
|
||||
const socket = new WebSocket("ws://localhost:8080");
|
||||
|
||||
function print(weather) {
|
||||
|
|
|
@ -2,13 +2,13 @@ const path = require("path");
|
|||
|
||||
module.exports = {
|
||||
entry: {
|
||||
"cloudevents-sdk": "./browser/index.js"
|
||||
"cloudevents": "./browser/index.js"
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "bundles"),
|
||||
filename: "[name].js",
|
||||
libraryTarget: "umd",
|
||||
library: "cloudevents-sdk",
|
||||
library: "cloudevents",
|
||||
umdNamedDefine: true
|
||||
},
|
||||
devtool: "source-map",
|
||||
|
|
Loading…
Reference in New Issue