You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I din't find any possibility to alter the tags that get injected into the html file or - better - replace the way they get injected with custom logic. I use a framework that lazy loads js chunks depending on whether the element that uses it gets into the viewport. Therefore the script url has to be written as data attribute on the element. It would be helpful if you could add the possibility to replace the logic for adding the js files to the html.
Suggested solution
pass the tags to the transformIndexHtml hook so that they can be changed or removed (and maybe replaced with custom logic to add the files)
Alternative
add an extra hook before the tags get injected that allows to change them
Clear and concise description of the problem
I din't find any possibility to alter the tags that get injected into the html file or - better - replace the way they get injected with custom logic. I use a framework that lazy loads js chunks depending on whether the element that uses it gets into the viewport. Therefore the script url has to be written as data attribute on the element. It would be helpful if you could add the possibility to replace the logic for adding the js files to the html.
Suggested solution
pass the tags to the transformIndexHtml hook so that they can be changed or removed (and maybe replaced with custom logic to add the files)
Alternative
add an extra hook before the tags get injected that allows to change them
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: