mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
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.
27 lines
530 B
TypeScript
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;
|
|
}
|