Skip to main content

extract_css_import_sources

Function extract_css_import_sources 

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

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

Returns both the raw source and the normalized source. URL imports (http://, https://, data:) are skipped. Use extract_css_imports when only the normalized form is needed.