Webpack `publicPath`,` path` and webpack-dev-server `contentBase` relations?

What is their connection?

After reading webpack docs. I am still not very clear.

I know output.path clearly.

The docs say webpack-dev-server will serve bundle files in memory. So what does the contentBase property contentBase ?

and what is the relationship with publicPath ?

+6
source share
1 answer

There seems to be no relationship

"publicPath" is the "URL where the web package files are served", just like the url prefix

"contentBase" is a "directory for working with files not related to the web folder", "the feed file is not created using webpack

More information is here: webpack-dev-server option

0
source

All Articles