Skip to content Skip to sidebar Skip to footer

Webpack Production Build Does Not Load Anything

I've been working on an app using React and Webpack for a little while. My development environment works fine, and everything loads properly using webpack-dev-server. I decided to

Solution 1:

As I mentioned in my comment, I've been using webpack successfully for months now, and I've never come across using an HTML file as an entry point.

Usually you'll use Webpack to package up javascript, css, and sometimes images (ie: "assets") to be used by an html file. Serving that HTML file is outside the realm of Webpack's responsibility.

I would suggest using Webpack to generate only the final javascript bundle, then using some other method (ie: express, or some other web server) to serve that file and the html that consumes it.

Post a Comment for "Webpack Production Build Does Not Load Anything"