Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

fix(webpack-config): use custom register-service-worker.js if available #1159

Merged
merged 2 commits into from
Nov 5, 2019
Merged

fix(webpack-config): use custom register-service-worker.js if available #1159

merged 2 commits into from
Nov 5, 2019

Conversation

jonathonlui
Copy link
Contributor

expo customize:web allows generating web/register-service-worker.js but webpack-config only uses the one in web-default because the path is hardcoded.

This PR fixes this issue by using the locations object to like the other customizable files.

@EvanBacon EvanBacon self-assigned this Nov 4, 2019
@EvanBacon EvanBacon added the Platform: web Using Expo in the browser label Nov 5, 2019
@EvanBacon
Copy link
Contributor

Thanks for this, there was a minor issue where the register-service-worker was being copied over twice, I fixed this though so it should be good now.

@EvanBacon EvanBacon merged commit feb47b2 into expo:master Nov 5, 2019
Copy link
Contributor

@EvanBacon EvanBacon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: web Using Expo in the browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants