diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index 0a42a29323..670bb3b188 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -52,7 +52,7 @@ watch(() => props.user.avatarBlurhash, () => { }); - - - diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index d89d71e192..bb858e256f 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -59,7 +59,11 @@ export default defineConfig(({ command, mode }) => { css: { modules: { generateScopedName: (name, filename, css) => { - return 'x' + toBase62(hash(`${filename} ${name}`)).substring(0, 4); + if (process.env.NODE_ENV === 'production') { + return 'x' + toBase62(hash(`${filename} ${name}`)).substring(0, 4); + } else { + return 'x' + toBase62(hash(`${filename} ${name}`)).substring(0, 4) + '-' + name; + } }, }, },