Skip to main content
All CollectionseWizard.js frameworkSites
Keep original filename in a site build
Keep original filename in a site build
eWizard Team avatar
Written by eWizard Team
Updated over a year ago

By default, when you make a production build by exporting or publishing your site in eWizard Editor, the filenames are replaced by randomly generated unique names.

For example, after you export a site in eWizard Editor, the name of image1.jpg is replaced with f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg.

You can keep the original names of assets with the keepOriginalFilename array in the site settings. Applicable to an original filename for a specific file or all files with a specific file format.

For example, to keep the original name of the image1.jpg file and all pdf files:

// ./settings.json{
"clms": {
"spa": {
"keepOriginalFilename": [
"**/common/media/image1.jpg",
"**/*.pdf",
]
}
}
}

The keepOriginalFilename array supports the following formats:

Asset type

File format

Audio

MP3

Video

MP4
MOV

Document

PDF
XLSX
PPT
CSV

Calendar

ICS

Text

CSV
JS
CSS

Image

PNG
JPEG
GIF
SVG
WEBP

Font

TTF
EOT
OTF
WOFF

Did this answer your question?