Skip to content

Commit 32977ff

Browse files
committed
experiment with bundling
1 parent 6708394 commit 32977ff

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/client/index.html renamed to src/client/public/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="idom-logo-square-small.svg" type="image/svg+xml" />
5+
<link rel="icon" href="./idom-logo-square-small.svg" type="image/svg+xml" />
66
<title>IDOM</title>
77
</head>
88
<body>
99
<div id="app"></div>
10-
<script type="module">
10+
<script type="module" src="../packages/idom-app-react/src/index.js">
1111
import { mount } from "idom-app-react";
1212
mount(document.getElementById("app"));
1313
</script>

src/client/snowpack.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ module.exports = {
22
workspaceRoot: false,
33
testOptions: { files: ["**/tests/**/*", "**/*.test.*"] },
44
buildOptions: { out: "../idom/client" },
5+
mount: { public: { url: "/", static: true } },
6+
optimize: { bundle: true, target: "es2018" },
57
};

0 commit comments

Comments
 (0)