From 5cda4f785959ddba821b45c0ebb2a9651cea99a2 Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Mon, 29 Apr 2024 10:21:11 +0000 Subject: [PATCH] Since ESM is not useable on `file:` protocol, use Vite to generate a single-file `index-local.html`. --- .gitignore | 1 + .mtn-ignore | 1 + index.html | 4 ++-- index.js | 14 ++++++++++---- package.json | 11 ++++++++++- release.sh | 6 ++++-- vite.config.js | 43 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 71 insertions(+), 9 deletions(-) create mode 100644 vite.config.js diff --git a/.gitignore b/.gitignore index f7aad76..23753bb 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ node_modules/ package-lock.json pnpm-lock.yaml # Artifacts from release.sh +index-local.html sha256sums.asc asn1js.zip # Artifacts from mirror_to_github.sh diff --git a/.mtn-ignore b/.mtn-ignore index 97ac908..7700e1e 100644 --- a/.mtn-ignore +++ b/.mtn-ignore @@ -4,6 +4,7 @@ node_modules$ package-lock[.]json pnpm-lock[.]yaml # Artifacts from release.sh +index-local.html sha256sums[.]asc asn1js[.]zip # Artifacts from mirror_to_github.sh diff --git a/index.html b/index.html index be537e4..c06267b 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + ASN.1 JavaScript decoder @@ -46,7 +46,7 @@

ASN.1 JavaScript decoder



-
Drag or load file:
Load examples: +
Load examples: