mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Emoji: Load emoji with hash in URL (#36808)
This commit is contained in:
parent
9eea4479e1
commit
9ae0464e8f
4 changed files with 24 additions and 96 deletions
|
|
@ -15,7 +15,6 @@ import {
|
|||
} from 'vite';
|
||||
import manifestSRI from 'vite-plugin-manifest-sri';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||
import svgr from 'vite-plugin-svgr';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
|
||||
|
|
@ -167,21 +166,6 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
|
|||
}),
|
||||
MastodonThemes(),
|
||||
MastodonAssetsManifest(),
|
||||
viteStaticCopy({
|
||||
targets: [
|
||||
{
|
||||
src: path.resolve(
|
||||
__dirname,
|
||||
'node_modules/emojibase-data/**/compact.json',
|
||||
),
|
||||
dest: 'emoji',
|
||||
rename(_name, ext, dir) {
|
||||
const locale = path.basename(path.dirname(dir));
|
||||
return `${locale}.${ext}`;
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
MastodonServiceWorkerLocales(),
|
||||
MastodonEmojiCompressed(),
|
||||
legacy({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue