Skip to content

Conversation

jorenbroekema
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 24, 2020

🦋 Changeset detected

Latest commit: c845409

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/rollup-plugin-html Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

const asset = getAsset(output, name);
console.log(asset, name);
expect(asset).to.exist;
expect(asset.source).to.exist;
Copy link
Member

Choose a reason for hiding this comment

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

console?

Copy link
Contributor Author

@jorenbroekema jorenbroekema Nov 25, 2020

Choose a reason for hiding this comment

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

Yeah just for debugging purposes, this test is failing in a very strange way, suddenly it cannot find the image-c asset as soon as I add image-d (poster attr for video). And I have no idea why 😭 I tried to play around with it and change stuff around but this bug keeps happening.

@jorenbroekema
Copy link
Contributor Author

jorenbroekema commented Dec 13, 2020

I think I need some help with this PR, I cannot figure out why the tests are failing.

As soon as I add image-d (poster attr for video), suddenly it cannot find the image-c asset, and I can't figure out why it behaves that way :\

I kinda need this PR for my site which uses <video> & <source> elements

@gdbaldw
Copy link

gdbaldw commented Jul 5, 2021

@jorenbroekema maybe this PR #1541 meets your needs for video and source tags?

@jorenbroekema
Copy link
Contributor Author

@gdbaldw yep, very nice. I still think this PR should be done at some point to make those tags work by default without needing to specify them manually, since they are native html tags that contain a reference to an asset, but I've given up making the flaky test work :P so your PR will at least enable me to extract those video assets

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.

3 participants