class ViteRuby::DevServerProxy
def normalize_uri(uri)
def normalize_uri(uri) uri .sub(HOST_WITH_PORT_REGEX, "/") # Hanami adds the host and port. .sub(".ts.js", ".ts") # Hanami's javascript helper always adds the extension. .sub(/\.(sass|scss|styl|stylus|less|pcss|postcss)\.css$/, '.\1') # Rails' stylesheet_link_tag always adds the extension. end