HomePhabricator
Diffusion Comm 1077e7310cdc

[web] Add support for web workers to webpack

Description

[web] Add support for web workers to webpack

Summary:
Part of ENG-2826

This diff adds a new webpack configuration for generating web/service worker files. It should be easily extensible for future service workers (just add a new field in entry config). It also includes a basic service worker that logs when it installs and activates.

Test Plan: Run yarn dev and yarn prod in comm/web and check if the service worker file is correctly generated.

Reviewers: atul, tomek, kamil, ashoat

Reviewed By: ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D6715

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Feb 13 2023, 6:47 AM
Reviewer
ashoat
Differential Revision
D6715: [web] Add support for web workers to webpack
Parents
rCOMMa58ce8e7e3d6: [keyserver] Change device_token to mediumtext
Branches
Unknown
Tags
Unknown