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
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
When using webpack to generate assets server side, e.g. PDF, the dev_server.host is not set. Is there a reason why the host calculation below is not inside the dev_server.enabled check?
host = ::Rails.configuration.webpack.dev_server.host
host = instance_eval(&host) if host.respond_to?(:call)
if ::Rails.configuration.webpack.dev_server.enabled
paths.map! do |p|
"#{protocol}://#{host}:#{port}#{p}"
end
end
paths
When using webpack to generate assets server side, e.g. PDF, the
dev_server.host
is not set. Is there a reason why thehost
calculation below is not inside thedev_server.enabled
check?Ref: https://github.com/mipearson/webpack-rails/blob/master/lib/webpack/rails/helper.rb#L24-L33
The text was updated successfully, but these errors were encountered: