Skip to content

fix(index-file): fixed the double quote issue #849

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

asollberger
Copy link

- also fixed the body replacement string
When attaching a class to body f.ex. <body class="mat-typography"> it would not find it and add the esms-options
@asollberger
Copy link
Author

@manfredsteyer the function updateScriptTags does not use the parameters mainName or polyfillsName anymore. I could remove them as well and refactor the few places where it's called unless you have plans to reactivate that behavior again.

'<script type="module" src="$1"></script>'
);
indexContent = indexContent.replace(
/<script src="(.*?main.*?)><\/script>/,
/<script src="(.*?main.*?)".*?><\/script>/,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If other builders setup other script tag attributes it will break them. Ain't there a way to parse the HTML node as a key value data structure easy to manipulate? 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, will have to tinker with the DOMParser and the XMLSerializer

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