我无法使用我的 laravel 应用程序进行热重载。
//laravel 主页
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
</head>
<body>
<div id="root"></div>
<?php
if (App::isLocal()):
?>
<script type="text/javascript" src="http://localhost:3000/static/bundle.js"></script>
<?php else: ?>
<script type="text/javascript" src="/dist/bundle.js"></script>
<?php endif; ?>
</body>
</html>
当我转到我的 homestead laravel 后端页面(localhost:8000)时,一切正常,但是当我更改 react 组件时没有热重新加载。
当我直接访问开发服务器http://localhost:3000时,我得到了热重载。
我正在使用反应变换样板:https ://github.com/gaearon/react-transform-boilerplate
如何让后端 laravel 页面重新加载捆绑包?