This is a duplicate of this other thread posted just prior:
Please try not to create multiple threads for the same issue.
You mention that you have src/assets/favicon
and that your build creates public/assets/favicon
.
But both of those paths seem incorrect.
Your repository contains src/assets/icons/favicon/
.
When I run your build, the resulting public
folder is exactly the same as on Netlify.
So the issue isn’t Netlify, it’s related to your own project.
You are copying files with this line:
Which is using this dependency:
Even running copy:assets
alone shows the favicon
folder is not copied.
My guess is that you missed this part of the copyfiles
documentation:
If you change the copy:assets
script in your package.json
to:
"copy:assets": "copyfiles -u 1 './src/assets/**/*' public",
Then you will find that it works.
1 Like