DEV Community

Discussion on: Setup a React app with Webpack and Babel

Collapse
 
deadwing7x profile image
Anubhav Sarkar • Edited

Thanks for your feedback. 😄

So, what webpack-dev-server does is, it just shows whatever files are needed to be displayed on the browser. If you check the devServer attribute in the config file, you will see that I mentioned it to take all files from the ‘src’ folder and display them on the browser. However the part which you are looking for, is done by the html-webpack-plugin. This is another npm package, which takes the output js file, i.e, the single/ final prod build file and then calls it in the index.html file.