Compare commits

...

2 Commits

Author SHA1 Message Date
Jeong Arm
214bb929cf
Merge bccee2868e into c442589593 2025-07-10 08:06:40 +00:00
Jeong Arm
bccee2868e Prevent inline font files in Vite build 2025-06-19 09:33:08 +09:00

View File

@ -43,6 +43,13 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
}, },
}, },
build: { build: {
assetsInlineLimit(filePath, _content) {
const relativePath = path.relative(jsRoot, filePath);
if (relativePath.startsWith('fonts/')) {
return false;
}
},
commonjsOptions: { transformMixedEsModules: true }, commonjsOptions: { transformMixedEsModules: true },
chunkSizeWarningLimit: 1 * 1024 * 1024, // 1MB chunkSizeWarningLimit: 1 * 1024 * 1024, // 1MB
sourcemap: true, sourcemap: true,