[ci] yarn format
This commit is contained in:
parent
23b0d2d345
commit
189098b6e5
2 changed files with 3 additions and 3 deletions
|
@ -301,8 +301,8 @@ export function findDeps(html: string, { astroConfig, srcPath }: { astroConfig:
|
|||
$('img[srcset]').each((_i, el) => {
|
||||
const srcset = $(el).attr('srcset') || '';
|
||||
const sources = srcset.split(',');
|
||||
const srces = sources.map(s => s.trim().split(' ')[0]);
|
||||
for(const src of srces) {
|
||||
const srces = sources.map((s) => s.trim().split(' ')[0]);
|
||||
for (const src of srces) {
|
||||
pageDeps.images.add(getDistPath(src, { astroConfig, srcPath }));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -22,4 +22,4 @@ Assets('srcset is copied in the build', async ({ build, readFile }) => {
|
|||
assert.ok(threeX, 'build the 3x image');
|
||||
});
|
||||
|
||||
Assets.run();
|
||||
Assets.run();
|
||||
|
|
Loading…
Reference in a new issue