Skip to content

Conversation

@Alex-Barbosu
Copy link

Context

Users need a convenient way to get the path to the generated CSS file without manually reconstructing it.

Problem

LeptosOptions did not provide a built-in method for retrieving the CSS path, so users had to duplicate logic.

Solution

Added a new method css_file_path() to LeptosOptions that returns the correct CSS file path as a string.

Example

let leptos_options = LeptosOptions { site_pkg_dir: "pkg".into(), output_name: "app".into(), ..Default::default() }; println!("CSS path: {}", leptos_options.css_file_path());
@Alex-Barbosu Alex-Barbosu changed the title Add css_file_path helper to LeptosOptions Add css_file_path helper to LeptosOptions (see #3513) Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant