diff --git a/examples/html/index.html b/examples/html/index.html
new file mode 100644
index 0000000000..647cc8160e
--- /dev/null
+++ b/examples/html/index.html
@@ -0,0 +1,289 @@
+
+
+
+
+
+
+ IC Reactor Example
+
+
+
+
+
+
ICRC Token
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/core/package.json b/packages/core/package.json
index 09952640cf..ab3f465230 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -37,7 +37,7 @@
"scripts": {
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest",
"start": "tsc watch",
- "bundle": "webpack --config webpack.config.js --mode production",
+ "bundle": "npx webpack --config webpack.config.js --mode production",
"build": "npx tsc",
"clean": "npx rimraf dist"
},
diff --git a/packages/core/webpack.config.js b/packages/core/webpack.config.js
index 66457f98fe..dff6fcef57 100644
--- a/packages/core/webpack.config.js
+++ b/packages/core/webpack.config.js
@@ -1,14 +1,15 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path")
+/** @type {import("webpack").Configuration} */
module.exports = {
entry: "./src/index.ts", // Your entry point file
output: {
path: path.resolve(__dirname, "bundle"),
filename: "bundle.js", // Output file
library: {
- name: "@ic-reactor", // Exported library name
- type: "umd", // Universal module definition
+ name: "reactor", // Exported library name
+ type: "window", // Universal module definition
},
},
module: {