From 466e8301550948e3400715a053377f02abea9410 Mon Sep 17 00:00:00 2001 From: Atanas Atanasov Date: Mon, 28 Dec 2020 18:27:28 +0200 Subject: [PATCH] Change build type and target --- README.md | 6 ++++++ demo/index.html | 36 ++++++++++++++++++++++++++---------- demo/index.js | 4 ++-- package.json | 2 +- tsconfig.json | 9 +++++---- 5 files changed, 40 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 8af8fd1..af37602 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,12 @@ Schema: } ``` +## Usage in browser + +You can use the module directly in the browser (without any module bundler such as Webpack or Parcel) but you will need to include `requirejs`. + +The usage is not so straight-forward, so please refer to the [demo](https://github.com/scriptex/typed-usa-states/blob/master/demo/index.html) + ## Typings The package exports several types which can be used in TypeScript environment. diff --git a/demo/index.html b/demo/index.html index eebb100..c363bbf 100644 --- a/demo/index.html +++ b/demo/index.html @@ -4,6 +4,8 @@ Typed USA States + +