|
|
@ -26,10 +26,10 @@ export default defineConfig({
|
|
|
|
assetFileNames(chunkInfo) {
|
|
|
|
assetFileNames(chunkInfo) {
|
|
|
|
if (chunkInfo?.name?.endsWith(".woff2")) {
|
|
|
|
if (chunkInfo?.name?.endsWith(".woff2")) {
|
|
|
|
// put on root so we are flexible about the CDN path
|
|
|
|
// put on root so we are flexible about the CDN path
|
|
|
|
return '[name]-[hash][extname]';
|
|
|
|
return "[name]-[hash][extname]";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 'assets/[name]-[hash][extname]';
|
|
|
|
return "assets/[name]-[hash][extname]";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// Creating separate chunk for locales except for en and percentages.json so they
|
|
|
|
// Creating separate chunk for locales except for en and percentages.json so they
|
|
|
|
// can be cached at runtime and not merged with
|
|
|
|
// can be cached at runtime and not merged with
|
|
|
@ -44,7 +44,7 @@ export default defineConfig({
|
|
|
|
// Taking the substring after "locales/"
|
|
|
|
// Taking the substring after "locales/"
|
|
|
|
return `locales/${id.substring(index + 8)}`;
|
|
|
|
return `locales/${id.substring(index + 8)}`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sourcemap: true,
|
|
|
|
sourcemap: true,
|
|
|
|