webpacker:在应用程序安装页面后开始加载很长时间 [英] webpacker: after installation pages in the application began to load for a very long time

查看:41
本文介绍了webpacker:在应用程序安装页面后开始加载很长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 webpacker 安装到我的 rails 应用程序中,安装后,我注意到应用程序中的页面开始加载很长时间,会发生什么?

I'm installing webpacker to my rails app, and after installation, I noticed that the pages in the application began to load for a very long time, what could happen?

来自日志:

在 90075ms 内完成 200 OK (Views: 90072.2ms | ActiveRecord: 0.0ms)

我使用 ruby​​ 2.5.0、rails 5.2.0、webpacker 3.5.5、node 10.6.0、yarn 1.7.0

I user ruby 2.5.0, rails 5.2.0, webpacker 3.5.5, node 10.6.0, yarn 1.7.0

推荐答案

很慢,因为 webpacker 正在编译你的资产检查一个类似的问题:

It is slow because webpacker is compiling your assets check a similar question:

将 Webpacker 添加到 Rails 应用后的疯狂加载时间

这篇关于webpacker:在应用程序安装页面后开始加载很长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆