You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That would work, I suppose. Probably time for a new helper to encapsulate that condition. Another option is to have Webpacker::DevServer#running? return false unless env.development?.
Agree we shouldn’t keep piling on that expression. I vaguely remember something about the dev server being used in test env though? But having this short circuit in #running? seems right.
On Jan 12, 2018, at 21:25, Javan Makhmali ***@***.***> wrote:
That would work, I suppose. Probably time for a new helper to encapsulate that condition. Another option is to have Webpacker::DevServer#running? return false unless env.development?.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Webpacker.dev_server.running?
opens a socket connection:webpacker/lib/webpacker/dev_server.rb
Lines 12 to 17 in c46d751
That's fine for development mode, but no good for production.
webpacker/lib/webpacker/helper.rb
Lines 13 to 14 in c46d751
webpacker/lib/webpacker/helper.rb
Lines 30 to 31 in c46d751
webpacker/lib/webpacker/helper.rb
Lines 64 to 65 in c46d751
Introduced in #641 and #1172.
/cc @dhh @gauravtiwari
The text was updated successfully, but these errors were encountered: