Reactjs 浏览器下载HTML内容,而不是使用webpack dev server显示
当我使用Reactjs 浏览器下载HTML内容,而不是使用webpack dev server显示,reactjs,webpack,webpack-dev-server,html5-history,Reactjs,Webpack,Webpack Dev Server,Html5 History,当我使用webpack dev server和historyapi fallback将其索引替换为index.php而不是index.html时,浏览器将下载其html内容,而不是显示它 如何解决此问题 下面是我的webpack.config.js webpack.config.js 下面是curl命令的结果 curl-Ihttps://foobar.example.dev --不安全 HTTP/2 200 x-powered-by: Express content-type: text/ht
webpack dev server
和historyapi fallback
将其索引替换为index.php
而不是index.html
时,浏览器将下载其html内容,而不是显示它
如何解决此问题
下面是我的webpack.config.js
webpack.config.js
下面是
curl
命令的结果
curl-Ihttps://foobar.example.dev --不安全
HTTP/2 200
x-powered-by: Express
content-type: text/html; charset=utf-8
content-length: 9577
HTTP/2 200
x-powered-by: Express
content-type: text/html; charset=utf-8
content-length: 9577