module Webpacker::ManifestRemote::ManifestExtention

Private Instance Methods

load() click to toggle source
Calls superclass method
# File lib/webpacker/manifest_remote/manifest_extention.rb, line 8
def load
  if Webpacker::Configuration.manifest_url
    JSON.parse(open(Webpacker::Configuration.manifest_url).read)
  else
    return super unless File.exist?(@path)
    JSON.parse(File.read(@path))
  end
end