class ViteRuby::Manifest
def with_file_extension(name, entry_type)
def with_file_extension(name, entry_type) if File.extname(name).empty? && (ext = extension_for_type(entry_type)) "#{ name }.#{ ext }" else name end end
def with_file_extension(name, entry_type) if File.extname(name).empty? && (ext = extension_for_type(entry_type)) "#{ name }.#{ ext }" else name end end