-
-
Notifications
You must be signed in to change notification settings - Fork 594
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(html): support custom meta element creation #308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-review complete. Nothing mysterious here. :)
Default: `[{ charset: 'utf-8' }]` | ||
|
||
Specifies attributes used to create `meta` elements. For each array member, provide an object with key-value pairs that represent meta element attribute names and values. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to copy/paste any documentation suggestions.
Resolved snapshot updating. The addition of
Ah, I'm seeing CI fail with similar problems I had locally. ~I don't believe my changes are causing those failures.~ The `map` failures don't seem related. But, the snapshot failure is.
Running: Installing AVA locally then running tests in the package does nothing when entering Thanks for any help sorting out what the heck is going on. |
Thanks for opening this PR. We'll get to reviewing this soon! |
This allows for convenient creation of `meta` elements without reimplementing all template function responsibilities.
@shellscape thanks for updating the |
👋 hi maintainers. Please let me know if there's anything I can do to raise visibility of this PR. I'm hoping you all find it to be a reasonable feature addition. Thanks! |
@mseeley If you're interested in helping to maintain the repo in the future, please let me know. We're always looking for help. |
* feat(html): support custom meta element creation This allows for convenient creation of `meta` elements without reimplementing all template function responsibilities. * chore: readme changes Co-authored-by: Andrew Powell <[email protected]>
This allows for convenient creation of
meta
elements without reimplementing all template function responsibilities.Rollup Plugin Name:
html
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers: n/a
Description
The
html
plugin doesn't allow for injection ofmeta
elements without re-implementing all of the template function responsibilities. This is bunch of relative complexity to take on in order to, in my case, inject our old friendly viewport meta below:Instead I added support for a backwards compatible
meta
option.utf-8
charset meta will be inserted.Running tests locally some snapshots are failing withnull
vsundefined
values formap
. I'm running 12.15.0 using nvm. Perhaps there's a behavior changes between12
and12.xx
. Tests passed for changed code, so, here we go. 🎉