fix(manifest): include assets referenced in html#14657
Conversation
There was a problem hiding this comment.
Looks good to me 👍
Would you add a test here that ensures the asset only referenced in html is included in the manifest?
vite/playground/assets/__tests__/assets.spec.ts
Lines 413 to 424 in 96a4ce3
There was a problem hiding this comment.
tiny nit: could we use an svg so it's smaller?
There was a problem hiding this comment.
My next PR will make SVG be inline.
But I can use a new SVG and reduce the inlineSize now, but this requires a new config test because the default one is already increase to 8kb (why I used ~12kb one)
There was a problem hiding this comment.
Ah ok if it's specifically to pass the 8kb limit, and there's no existing files to use I'm fine with it then. No need to change 👍
|
@sapphi-red you're suggesting adding a new test with a html + asset file only and duplicate this test? |
|
My bad, I misunderstood the test. |
Discovered by hasard while doing #14643 (required to make tests pass)