使用了webpack-dev-server --content-base src --inline --hot
沒有頁面檔案
看下是不是devServer裡面的contentBase配錯了
devServer: { contentBase: path.join(__dirname, ''), // '' 的时候默认访问到index.html src和其他文件夹的时候就成了文件服务器的样子 compress: false, inline: true, hot: true, port: 4000 },
應該是你的文件下沒有一個index.html文件把!根目錄下面
肯定是伺服器目錄沒有html檔
沒有頁面檔案
看下是不是devServer裡面的contentBase配錯了
應該是你的文件下沒有一個index.html文件把!根目錄下面
肯定是伺服器目錄沒有html檔