feat: bump version to 0.0.2
This commit is contained in:
parent
8fa0d45c4b
commit
2a9820cf22
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pinmenote/tiny-dispatcher",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"author": "Michal Szczepanski",
|
||||
"license": "MIT",
|
||||
"description": "tiny event dispatcher",
|
||||
|
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Hello World</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module" src="index.ts"></script>
|
||||
</body>
|
||||
</html>
|
12
src/index.ts
12
src/index.ts
@ -1,12 +0,0 @@
|
||||
import { Config } from './config';
|
||||
const h1 = document.createElement('h1');
|
||||
document.body.appendChild(h1);
|
||||
h1.innerText = `is production ${Config.isProduction.toString()}, foo value from .env: ${Config.foo || ''}`;
|
||||
|
||||
// Hot reloading
|
||||
if (!Config.isProduction) {
|
||||
const ws = new WebSocket('ws://localhost:1234');
|
||||
ws.onmessage = () => {
|
||||
window.location.reload();
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user