Custom Files Getting Erased After dfx deploy : main.css doesn't exist at build time it will remain unchanged to be resolved at runtime

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

1 Like