class Webpacker::Manifest

def lookup(name, pack_type = {})

Webpacker.manifest.lookup('calendar.js') # => "/packs/calendar-1016838bab065ae1e122.js"

Example:

If no asset is found, returns nil.
Computes the relative path for a given Webpacker asset using manifest.json.
def lookup(name, pack_type = {})
  compile if compiling?
  find(full_pack_name(name, pack_type[:type]))
end