Files
zulip/web/src/assets.d.ts
Alex Vandiver 38053e9c7c emoji: Convert spritesheets to webp.
This provides significant size savings:

| Emoji set   | png size | webp size | webp/png percent |
| ----------- | -------- | --------- | ---------------- |
| google-blob |  1968954 |   1373350 |           69.75% |
| twitter     |  2972820 |   2149672 |           72.31% |
| google      |  3455270 |   2327834 |           67.37% |

Since these are the largest assets that we ship to clients, it is
worth shaving off every byte we can.
2024-09-11 09:03:47 -07:00

27 lines
530 B
TypeScript

declare module "*.svg" {
const url: string;
export default url;
}
declare module "*.ttf" {
const url: string;
export default url;
}
declare module "*.png" {
const url: string;
export default url;
}
declare module "*.webp" {
const url: string;
export default url;
}
// Declare the style loader for CSS files. This is used in the
// `import` statements in the `emojisets.ts` file.
declare module "!style-loader?*" {
const css: {use: () => void; unuse: () => void};
export default css;
}