Skip to content

Conversation

@lulzneko
Copy link

This pull request introduces a new option.
It changes tags to inject Browsersync's snippets.

This is a workaround for #15 . (I could not solve the root cause of #15 )

Browsersync may not work if the same problem as issue #15 occurs. Because the snippet for Browsersync is injected into </ body>. The #15 issue causes </ body> not to be rendered, which can cause Browsersync to fail.

The option introduced by this pull request allows you to move the tag to be injected into the first half of the code.
This will avoid this problem. It is rendered reliably by being injected into the tag.

This option allows to use the Browsersync feature until #15 is resolved.

Alternatively, this option can provide a solution for themes without tags.
For example, it is recommended that the [Google HTML/CSS Style Guide] not use the optional <body> tag. This plugin can not be used than it is.

However, if this pull request makes other tags available, then the plug-in will be available.
Like this, it is a function that can be used not only for the #15 workaround but also for others.

@lulzneko lulzneko closed this Oct 12, 2021
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.

1 participant