Bundle.js 不在我的应用程序的任何文件夹中,尽管 devtool 说相反
Bundle.js is not in any folder of my application despite devtool saying the opposite
首先我没有使用 webpack,它是一个完整的 MERN 堆栈应用程序。
我 运行 Lighthouse 来测试我的应用程序性能,它说要缩小 Bundle.js,已经两个小时或更长时间了......仍然找不到它。
在我的 index.html 中有一行我没有在我的代码中看到它但出现在检查器中 (devtool)
<script type="text/javascript" src="/static/js/bundle.js"> </script>
我尝试将我的工作区添加到 chrome 开发工具以找到它,但仍然不起作用
enter image description here
我找到了,
当您 运行 npm start in
任何示例时,一个 Express 服务器将启动,它将在开发中使用 Webpack 到服务器 /static/bundle.js
。
首先我没有使用 webpack,它是一个完整的 MERN 堆栈应用程序。
我 运行 Lighthouse 来测试我的应用程序性能,它说要缩小 Bundle.js,已经两个小时或更长时间了......仍然找不到它。
在我的 index.html 中有一行我没有在我的代码中看到它但出现在检查器中 (devtool)
<script type="text/javascript" src="/static/js/bundle.js"> </script>
我尝试将我的工作区添加到 chrome 开发工具以找到它,但仍然不起作用
enter image description here
我找到了,
当您 运行 npm start in
任何示例时,一个 Express 服务器将启动,它将在开发中使用 Webpack 到服务器 /static/bundle.js
。