Skip to main content

extract_css_imports

Function extract_css_imports 

Source
pub fn extract_css_imports(source: &str, is_scss: bool) -> Vec<String>
Expand description

Extract normalized @import / @use / @forward / @plugin source paths from a CSS/SCSS string.

Returns specifiers normalized via normalize_css_import_path. URL imports (http://, https://, data:) are skipped. Used by callers that only need entry/dependency source paths; callers that need import kind information should use extract_css_import_sources.