-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add transform to load and import external CDN assets into the assetgraph root #229
base: master
Are you sure you want to change the base?
Conversation
We can stub the CDN assets out with unexpected-mitm, see the http resolver tests. Parts of this could also be relevant for SourceMappingURL/SourceURL pointing to an external asset, and for the SRI support where we need to compute hashes of the external assets. We'll need to refine a lot of the queries in buildProduction to do the right thing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, what about fonts and images etc. refererenced by the adopted assets? We want to pull those in as well, right?
Good point. I'll look into that. How the heck does this PR drop code coverage by 5%? |
// 'HtmlResourceHint', | ||
// 'HtmlScript', | ||
'HtmlSearchLink', | ||
// 'HtmlServiceWorkerRegistration', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be blacklisted as well.
// 'HtmlFluidIconLink', | ||
'HtmlFrame', | ||
'HtmlIFrame', | ||
'HtmlIFrameSrcDoc', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary to list as it's a "born" inline relation.
…ring the rtransform
…n discovery and enable HtmlIframeSrcDoc according to PR feedback
Updated according to feedback |
Refs assetgraph/assetgraph-builder#148
@papandreou This is very basic in that it only imports CSS and JavaScript. Might want to add web components as well. The test are running a bit slow, do you have any tricks to stub out the CDN assets?