-
Notifications
You must be signed in to change notification settings - Fork 174
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
feat(manifest): add useWebmanifestExtension
option and improve docs
#241
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #241 +/- ##
==========================================
+ Coverage 72.55% 72.64% +0.08%
==========================================
Files 11 11
Lines 317 318 +1
Branches 98 98
==========================================
+ Hits 230 231 +1
Misses 75 75
Partials 12 12
Continue to review full report at Codecov.
|
@gangsthub it would be interesting to warn the user if the extension type is different from |
I reverted mocking the package
But not in
And I didn't know why or how to fix it 🤔 |
Hi @gangsthub and thanks for this PR ❤️ I'm so sad to say I think it's not a good idea to recommend using non-JSON extension by users. I'm still up with adding a simple flag (Like PS: I've tried to explain it as much as i can and add relative issues in a wiki page: https://github.com/nuxt-community/pwa-module/wiki/.webmanifest |
@pi0 or should this PR change? |
@ricardogobbosouza I think so. Just adding a flag to change ext should be enough. There are enough reasons to not warn users, etc. And no reason to make it more complicated to allow any extension. |
Noted. It's correct, it makes no sense to give freedom on choosing an extension different than
|
* Make clear `[]` is array by formatting it
a36138b
to
f12c1a5
Compare
.webmanifest
webmanifest
Any update ? |
webmanifest
useWebmanifestExtension
option and improve docs
Thanks, @gangsthub. I've merged and also updated the wiki to include webhint |
According to the spec [W3] (and W3C):
I added the option in the Manifest module but left the "json" as the default one for backward compatibility.
Using
.webmanifest
is also recommended by Webhint.I also
added some tests (mocking the hasha module)updated the snapshots.And edited the documentation to show the default options.