class ViteRuby::Manifest

def with_file_extension(name, entry_type)

Internal: Adds a file extension to the file name, unless it already has one.
def with_file_extension(name, entry_type)
  if File.extname(name).empty? && (ext = extension_for_type(entry_type))
    "#{ name }.#{ ext }"
  else
    name
  end
end