Webpack how to build production code and how to use it
- Above question came very near to answering this. But I am stressing on the second part.
- I am new to Nodejs let alone Webpack. I tried this tutorial https://blog.risingstack.com/using-react-with-webpack-tutorial/ Which really threw light into many aspects of Webpack.
- But, what I want is a build which can run "on its own", that is, without node modules and other unnecessary files. 
- I tried Webpack -p with production configuration and that runs fine and creates a dist directory. And I thought that directory was what I was looking for. But I can't find a way to run it. 
- What am I missing ? 
EDIT:
- I tried to run means i tried to open the index.html
- I looked at the browser console now and its showing file not found for both my JS file and CSS file. 
- I will provide a screenshot of the console output. My dist directory contains four files index.html, main-d9103c44e6f452183f46.min.css, main-d9103c44e6f452183f46.min.js, webpack.stats.json. 
- As I mentioned above, pretty much a noob. If you tell me what information I should provide, I'll be happy to provide that. Thank you. 

 
    