Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ALL the things! #15

Merged
merged 1 commit into from Oct 7, 2021
Merged

Update ALL the things! #15

merged 1 commit into from Oct 7, 2021

Conversation

doubleo2
Copy link
Contributor

Replaced Tobi because it was unpublished from NPM and updated all other dependencies to build using the LTS version of Node (14.18.0) at time of writing

Replaced Tobi because it was unpublished from NPM and updated all
other dependencies to build using the LTS version of Node (14.18.0)
at time of writing
@sandoche
Copy link
Owner

sandoche commented Oct 4, 2021

This looks great, I need to test this when I have a bit of time, also I think I can use it all for https://github.com/sandoche/Jekyll-webpack-boilerplate

@sandoche sandoche merged commit b599290 into sandoche:master Oct 7, 2021
@sandoche
Copy link
Owner

sandoche commented Oct 7, 2021

@doubleo2 the pwa doesn't work.

I get:

Site cannot be installed: no matching service worker detected. You may need to reload the page, or check that the service worker for the current page also controls the start URL from the manifest

'_site/**/**.html',
'_site/assets/images/**.*',
'_site/assets/**.js',
swDest: '_site/service-worker.js',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sandoche Could it be this line? Unfortunately because I had never built this project before the tobi package was removed from npm, I didn't have a reference build to compare the updated output with. I also couldn't find a definitive answer online about the default destination of the original sw-precache tool

Copy link
Owner

@sandoche sandoche Oct 7, 2021

Choose a reason for hiding this comment

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

I think the problem came from the fact that two webpack plugins were competing to create the manifest.json
My last push should have fixed it. Just waiting for the netlify build to test.

@doubleo2
Copy link
Contributor Author

doubleo2 commented Oct 7, 2021 via email

@sandoche
Copy link
Owner

sandoche commented Oct 7, 2021

It's pretty strange it works locally but not on production.

@sandoche
Copy link
Owner

sandoche commented Oct 7, 2021

I know why , my bad. The default build command of netlify use the build without pwa. I will leave this out since it's a website to showcase your app. It should not require the PWA.

@sandoche
Copy link
Owner

sandoche commented Oct 7, 2021

I know why , my bad.

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.

None yet

2 participants