marharyta / webpack-boilerplate

Boilerplate for webpack 4 setup
398 stars 72 forks source link

Image is not shown in "webpack-basic-setup" #8

Open andrey-prokhorov opened 5 years ago

andrey-prokhorov commented 5 years ago

Hello! This image is not served due "contentBase" setting that points to "dist" - a directory that does not exist in the project.

Since nothing is written to the disk when using webpack-dev-server, this directory will be never created too, so I think "contentBase" should be "./".

See my PR here: https://github.com/marharyta/webpack-boilerplate/pull/9

😄