Skip to content

wasm support, enable PWA for offline usage and installability [week-6] - #200

Merged
meganindya merged 10 commits into
sugarlabs:sadn1ck/gsoc-2022from
sadn1ck:sadn1ck/week-6
Sep 8, 2022
Merged

meganindya merged 10 commits into
sugarlabs:sadn1ck/gsoc-2022from
sadn1ck:sadn1ck/week-6

Conversation

@sadn1ck

@sadn1ck sadn1ck commented Aug 10, 2022

Copy link
Copy Markdown
Contributor
  • used wepback's workbox plugin to enable and load service workers for offline usage and caching

  • enable loading WASM using webpack 5's inbuild wasm support

  • construct URL based on that

  • allows runtime checking of build (dev/prod) for loading service worker
    and webassembly

@sadn1ck
sadn1ck changed the base branch from develop to sadn1ck/gsoc-2022 August 10, 2022 12:41
* flexibility for default subdirectory deployment (domain.com/dir)

* another build command allows for root deployment (subd.domain.com)

Signed-off-by: Anik Das <anikdas0811@gmail.com>
* used eslint-webpack-plugin

* logs error to terminal and an overlay during development
* sketch.clear() takes 4 args -> r, g, b, a -> added them

* svg imports needed to be declared for typescript to identify their
  types, added declaration to react-app-env.d.ts
Signed-off-by: Anik Das <anikdas0811@gmail.com>
Signed-off-by: Anik Das <anikdas0811@gmail.com>
* execute npm run analyze to build and inspect the output bundles

Signed-off-by: Anik Das <anikdas0811@gmail.com>
* set level to 9 with 50KB as threshold

Signed-off-by: Anik Das <anikdas0811@gmail.com>
Signed-off-by: Anik Das <anikdas0811@gmail.com>
* enable loading WASM using webpack 5's inbuild wasm support

* construct URL based on that

* allows runtime checking of build (dev/prod) for loading service worker
  and webassembly

Signed-off-by: Anik Das <anikdas0811@gmail.com>
@meganindya
meganindya merged commit dc32bba into sugarlabs:sadn1ck/gsoc-2022 Sep 8, 2022
meganindya added a commit that referenced this pull request Sep 8, 2022
wasm support, enable PWA for offline usage and installability [week-6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants