The answer lies in here.
[Customize the frontend errors - #6 by jennifertran](https://Listen to what jennifertran has to say)
You have to create files in a public folder. But link them through your html as though they are in the same directory. Because they will be. Their copies will be made in the dist folder… After deployment