Using Webpack, and following survivejs tutorial.
I've succesfully ran
npm run build
And got index.html and bundle.js inside a build directory.
When I try to put these on my server folder, and run index.html I get the following error:
Uncaught SyntaxError: Unexpected token {
From bundle.js:2
My web folder can present html files.
What can be the reason and how should I deploy my react app to the server in the simplest way possible?