From 95b04eea0e0123f420aaf1cb5593f302cb36a8da Mon Sep 17 00:00:00 2001 From: Yentl Projects <--global> Date: Mon, 1 Mar 2021 23:12:16 +0100 Subject: [PATCH] Fix app only working once + refactor/add some of the existing functionality --- readme.md | 10 +++++----- src/index.html | 13 +++++++++---- src/index.ts | 46 ++++++++++++++++++++-------------------------- webpack.config.ts | 12 ++++++------ 4 files changed, 40 insertions(+), 41 deletions(-) diff --git a/readme.md b/readme.md index 06b02ed..40c8727 100644 --- a/readme.md +++ b/readme.md @@ -1,15 +1,15 @@ # Minimal Alt1/webpack/typescript example -how to use +How to use ```sh -#to initialize the repo and install dependencies +# To initialize the repo and install dependencies: npm i -#biuld +# Build your code: npm run build -#alternatively to auto-rebuild when source files are changed +# Or, alternatively to auto-rebuild when source files are changed: npm run watch ``` -You can open `./dist/index.html` in your browser and it will give some basic functionality based one pasted images. +You can open `./dist/index.html` in your browser and it will give some basic functionality based on pasted images. You can also open it in the Alt1 browser and click the `add app` button that appears to get some basic alt1 functionality. \ No newline at end of file diff --git a/src/index.html b/src/index.html index 1887e9f..eb5ecf4 100644 --- a/src/index.html +++ b/src/index.html @@ -1,7 +1,12 @@ -
- - - + + + + +