chunkFileNames
- Type:
optionalchunkFileNames:string| (chunkInfo) =>string
Defined in: options/output-options.ts:325
The pattern to use for naming shared chunks created when code-splitting, or a function that is called per chunk to return such a pattern.
Patterns support the following placeholders:
[format]: The rendering format defined in the output options, e.g.esorcjs.[hash]: A hash based only on the content of the final generated chunk, including transformations inrenderChunkand any referenced file hashes. You can also set a specific hash length via e.g.[hash:10]. By default, it will create a base-64 hash. If you need a reduced character set, seeoutput.hashCharacters.[name]: The name of the chunk. This can be explicitly set via theoutput.advancedChunksoption or when the chunk is created by a plugin viathis.emitFile. Otherwise, it will be derived from the chunk contents.
Forward slashes (/) can be used to place files in sub-directories.
See also output.assetFileNames, output.entryFileNames.
Default
ts
'[name]-[hash].js'