Убрал хэши из нахвания файлов билда

This commit is contained in:
NikitaKalitov
2026-08-21 09:15:41 +03:00
parent 33939dffaf
commit 7a7fe80c94
+7 -3
View File
@@ -17,11 +17,15 @@ export default defineConfig(({ mode }) => {
build: { build: {
// No content hashes in output filenames — cache-busting on redeploy is // No content hashes in output filenames — cache-busting on redeploy is
// handled at the hosting/nginx level instead (see docs/bitrix-integration.md). // handled at the hosting/nginx level instead (see docs/bitrix-integration.md).
// Flat layout (no "assets/" subfolder): one deployment target's own
// folder is literally named "assets" (local/modules/vniigaz.bpmn/assets/),
// and nesting output under another "assets/" there doubled the path
// segment (.../assets/assets/index.js, 404). Flat works everywhere.
rolldownOptions: { rolldownOptions: {
output: { output: {
entryFileNames: 'assets/[name].js', entryFileNames: '[name].js',
chunkFileNames: 'assets/[name].js', chunkFileNames: '[name].js',
assetFileNames: 'assets/[name].[ext]', assetFileNames: '[name].[ext]',
}, },
}, },
}, },