Used webpack-dev-server --content-base src --inline --hot
No page file
Check if the contentBase in devServer is misconfigured
devServer: { contentBase: path.join(__dirname, ''), // '' 的时候默认访问到index.html src和其他文件夹的时候就成了文件服务器的样子 compress: false, inline: true, hot: true, port: 4000 },
It should be that there is no index.html file under your file! Under the root directory
There must be no html file in the server directory
No page file
Check if the contentBase in devServer is misconfigured
It should be that there is no index.html file under your file! Under the root directory
There must be no html file in the server directory