this was tested in a new Light project, but it warrants further testing
- the current filter under
src matches only the top-level files, not the nested folders, so only the files in App/assets/fonts and App/assets/images are copied to public
stripBase: true flattens nested folders, instead of maintaining the folder structure
i recommend this change for the current lines 7-20
viteStaticCopy({
targets: [
{
src: 'App/assets/fonts/**/*',
dest: 'fonts',
rename: { stripBase: 3 },
},
{
src: 'App/assets/images/**/*',
dest: 'images/app/',
rename: { stripBase: 3 },
},
],
}),
**/* matches all files and nested folders
stripbase: 3 to remove the prefix, e.g. App/assets/fonts
this was tested in a new Light project, but it warrants further testing
srcmatches only the top-level files, not the nested folders, so only the files inApp/assets/fontsandApp/assets/imagesare copied topublicstripBase: trueflattens nested folders, instead of maintaining the folder structurei recommend this change for the current lines 7-20
**/*matches all files and nested foldersstripbase: 3to remove the prefix, e.g.App/assets/fonts