Skip to content

Commit

Permalink
Merge pull request #19 from yaacov/update-lint-s
Browse files Browse the repository at this point in the history
fix autoload
  • Loading branch information
yaacov authored Aug 11, 2024
2 parents 09911ad + 0f6fd5e commit 81a5eb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions client/scripts/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function serve() {
const config = getBuildConfig({
sourcemap: true,
banner: {
js: `new EventSource('/esbuild').onmessage = () => location.reload();`, // Shorter reload script
js: `new EventSource('/esbuild').addEventListener('change', () => location.reload());`,
},
});

Expand All @@ -30,7 +30,8 @@ async function serve() {
});

// Watch *.ts files
ctx.watch();
await ctx.watch();
console.log('watching...');

const { host, port } = server;
console.log(`Server is running at http://${host}:${port}`);
Expand Down
6 changes: 3 additions & 3 deletions client/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"@patternfly/icons/": "/node_modules/@patternfly/icons/"
}}
</script>
</head>
<body>
<planner-app></planner-app>
<script type="module">
import "./index.js";
</script>
</head>
<body>
<planner-app></planner-app>
</body>
</html>

0 comments on commit 81a5eb4

Please sign in to comment.