Убрал хэши из нахвания файлов билда
This commit is contained in:
+7
-3
@@ -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]',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user