标签: reactjs webpack cross-domain webpack-dev-server
我正在用HTML加载CRA webpack-dev-server提供的react组件,就像这样 <script src="http://localhost:3000/static/js/bundle.js"></script>
<script src="http://localhost:3000/static/js/bundle.js"></script>
热重装不起作用,以下网址出现404错误。它应该指向端口3000
http://127.0.0.1:8000/sockjs-node/info?t=1548257895594
我的HTML已加载到http://127.0.0.1:8000
http://127.0.0.1:8000