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>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>CloudEvent Example</title>
|
<title>CloudEvent Example</title>
|
||||||
<script src="../../bundles/cloudevents-sdk.js"></script>
|
<script src="../../bundles/cloudevents.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const CloudEvent = window['cloudevents-sdk'].CloudEvent;
|
const CloudEvent = window.cloudevents.CloudEvent;
|
||||||
const Version = window['cloudevents-sdk'].Version;
|
const Version = window.cloudevents.Version;
|
||||||
const socket = new WebSocket("ws://localhost:8080");
|
const socket = new WebSocket("ws://localhost:8080");
|
||||||
|
|
||||||
function print(weather) {
|
function print(weather) {
|
||||||
|
|
|
@ -2,13 +2,13 @@ const path = require("path");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
"cloudevents-sdk": "./browser/index.js"
|
"cloudevents": "./browser/index.js"
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, "bundles"),
|
path: path.resolve(__dirname, "bundles"),
|
||||||
filename: "[name].js",
|
filename: "[name].js",
|
||||||
libraryTarget: "umd",
|
libraryTarget: "umd",
|
||||||
library: "cloudevents-sdk",
|
library: "cloudevents",
|
||||||
umdNamedDefine: true
|
umdNamedDefine: true
|
||||||
},
|
},
|
||||||
devtool: "source-map",
|
devtool: "source-map",
|
||||||
|
|
Loading…
Reference in New Issue