assetFileNames
- Type:
optionalassetFileNames:string| (chunkInfo) =>string
Defined in: options/output-options.ts:295
The pattern to use for naming custom emitted assets to include in the build output, or a function that is called per asset to return such a pattern.
Patterns support the following placeholders:
[extname]: The file extension of the asset including a leading dot, e.g..css.[ext]: The file extension without a leading dot, e.g. css.[hash]: A hash based on the content of the asset. 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 file name of the asset excluding any extension.
Forward slashes (/) can be used to place files in sub-directories.
See also output.chunkFileNames, output.entryFileNames.
Default
ts
'assets/[name]-[hash][extname]'