DefaultAssetNamingStrategy

DefaultAssetNamingStrategy

DefaultAssetNamingStrategy

The default strategy normalizes the file names to remove unwanted characters and in the case of conflicts, increments a counter suffix.

Signature

class DefaultAssetNamingStrategy implements AssetNamingStrategy {
  generateSourceFileName(originalFileName: string, conflictFileName?: string) => string;
  generatePreviewFileName(sourceFileName: string, conflictFileName?: string) => string;
}

Members

generateSourceFileName

method
type:
(originalFileName: string, conflictFileName?: string) => string

generatePreviewFileName

method
type:
(sourceFileName: string, conflictFileName?: string) => string