I use CRA (react-scripts@2.1.3). If I serve my app locally, so using webpack devserver, I have the expected files deployed. (bundle, chunks, etc...)
However, if I serve my build folder, with a npm run build, followed by a serve -s build, I have the following files deployed :
static/
css/
js /
media/
node_modules/
path/to/my/local/source/code
node_modules
src
My build folder is at the root, and contains all the files and folders I am expecting to see.
BTW, I use firebase hosting to deploy my app. And I see the same file structure in my deployed app.
Any clue what I'm missing here ?