Home / Function/ get_normalized_sources() — tailwindcss Function Reference

get_normalized_sources() — tailwindcss Function Reference

Architecture documentation for the get_normalized_sources() function in mod.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  3315b2a0_2b5b_9e0f_da94_1e4ec3c79df8["get_normalized_sources()"]
  d865d4fd_bb15_6d9a_a900_10e82a6856fb["mod.rs"]
  3315b2a0_2b5b_9e0f_da94_1e4ec3c79df8 -->|defined in| d865d4fd_bb15_6d9a_a900_10e82a6856fb
  style 3315b2a0_2b5b_9e0f_da94_1e4ec3c79df8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/scanner/mod.rs lines 402–417

    pub fn get_normalized_sources(&self) -> Vec<GlobEntry> {
        self.sources
            .iter()
            .filter_map(|source| match source {
                SourceEntry::Auto { base } | SourceEntry::External { base } => Some(GlobEntry {
                    base: base.to_string_lossy().to_string(),
                    pattern: "**/*".to_string(),
                }),
                SourceEntry::Pattern { base, pattern } => Some(GlobEntry {
                    base: base.to_string_lossy().to_string(),
                    pattern: pattern.to_string(),
                }),
                _ => None,
            })
            .collect()
    }

Domain

Subdomains

Frequently Asked Questions

What does get_normalized_sources() do?
get_normalized_sources() is a function in the tailwindcss codebase, defined in crates/oxide/src/scanner/mod.rs.
Where is get_normalized_sources() defined?
get_normalized_sources() is defined in crates/oxide/src/scanner/mod.rs at line 402.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free