Skip to content

Conversation

saschazar21
Copy link

@saschazar21 saschazar21 commented Oct 16, 2019

This PR adds the functionality to inject the CSS string in a <style amp-custom>...</style> tag, as intended by the AMP project.

Functionality: It queries the <head> for an already available amp-custom tag, and appends the CSS string to its contents. If no amp-custom was found, it appends a new <style amp-custom /> element as a child of the document's head.

The previous functionality was preserved, so it's still backwards compatible.

@ivoilic
Copy link

ivoilic commented Aug 22, 2021

@saschazar21 I've added this feature in an improved version of this package: style-implant

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.

2 participants