From ce7d6aa57ff9dc64825b4f71ea00305ee27a4a3a Mon Sep 17 00:00:00 2001 From: moris Date: Wed, 12 Mar 2025 23:10:34 +0900 Subject: [PATCH] =?UTF-8?q?css=20hash=E3=82=92=E7=9F=AD=E3=81=8F=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svelte.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index f563a9d..5bbe57f 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -9,9 +9,12 @@ const config = { adapter: adapter(), paths: { base: "/blog", - relative: false } - } + }, + + compilerOptions: { + cssHash: ({hash,css}) => `_${hash(css)}` + }, }; export default config;