Skip to content
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

Support assets not correctly prefixed by Embrodier with publicPath #12

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

evoactivity
Copy link
Contributor

Closes #11

When publicPath and rootURL are different <link> tags that are not stylesheets end up only using rootURL.

This will allow the build to continue by handling this scenario.

Added test cases to account for that.

I also noticed the adds crossorigin attribute to link elements for stylesheets test was checking script tags 😅 so I've updated the default stylesheet tests so they only look at stylesheet <link> tags.

Copy link
Owner

@jelhan jelhan left a comment

Choose a reason for hiding this comment

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

Thanks a lot.

I only noticed a potential improvement in the test. Would be great if you could take care of that.

tests/test.js Show resolved Hide resolved
tests/test.js Show resolved Hide resolved
@evoactivity
Copy link
Contributor Author

Done :)

@jelhan jelhan merged commit 10284df into jelhan:main Feb 20, 2024
2 checks passed
@jelhan jelhan added the bug Something isn't working label Feb 20, 2024
@jelhan jelhan changed the title Handle when publicPath & rootURL are different Support assets not correctly prefixed by Embrodier with publicPath Feb 20, 2024
@jelhan
Copy link
Owner

jelhan commented Feb 20, 2024

Released as v0.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embroider doesn't change all {{rootURL}} usage in index.html
2 participants