create-react-app中的Bundle.js使用Docker Toolbox加载缓慢

奥立佛

我有一个使用create-react-app构建的React Web应用程序,该应用程序当前在容器内运行。开发bundle.js量大约2mb。但是,它需要在容器内运行的webpack-dev-sever超过30秒才能加载捆绑包。有什么办法可以加快速度吗?我正在Windows 7上使用Docker Toolbox

屏幕截图:

屏幕截图

奥立佛

我意识到,CHOKIDAR_USEPOLLING当用于在docker容器中启用Webpack的热重装时,这本质上很慢。更好的选择是在容器外部运行webpack的东西

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

测试咖啡馆+电子+ create-react-app无法正确加载bundle.js

bundle.js加载缓慢

使用sass的create-react-app无法加载样式

使用create-react-app和Skaffold kubernetes的行为不稳定且缓慢

如何在不使用docker安装Node js的情况下开发Node JS(create-react-app)

如何使用docker + react-create-app获得生产版本?

创建React App-重新加载缓慢。加速选项

如何在 Node.js(和 create-react-app)中使用 p5.js 声音库预加载

使用Create React App进行React样式

如何使用create-react-app在docker-compose.yml中传递环境变量

在Windows上,package.json中的React Create App Proxy Agent在Windows上运行缓慢

使用create-react-app 2.0将scss加载到字符串变量中而不弹出

使用TypeScript在create-react-app中的故事书

如何从链接中删除“使用 create-react-app 创建”?

在/dist/bundle.js上将Flask服务器添加到create-react-app默认应用404

docker-compose在启动使用create-react-app创建的react应用后立即停止

使用create-react-app base时,仅支持Electron Webview预加载file://协议

npx create-react-app无法正常工作“必须使用导入来加载ES模块:”

如何使用 Webpack 在 Monaco 中加载 npm 模块类型定义并响应 create-react-app

使用create-react-app创建库

如何使用Create React App实现skipWaiting?

使用 Create React App 代理 404

create-react-app生成函数而不是App.js中的类

使用Jest和create-react-app测试React异步

使用React和create-react-app动态导入

无法使用npx create-react-app创建react应用

未使用create-react-app在react应用中定义google

如何使用 create react app 在特定 React 组件中显示图像?

将所有图片预加载到create-react-app中