2

From the readme of webpack-dev-middleware, there is a publicPath configuration:

publicPath: "/assets/",
// public path to bind the middleware to
// use the same as in webpack

But I'm not sure why there is such a configuration since there is already a same one in webpack.config.js

Freewind
  • 193,756
  • 157
  • 432
  • 708

1 Answers1

0

I think it is necessary for Hot Module Replacement to know where to load the hot update chunks.

Vahid PG
  • 428
  • 6
  • 11