Expand description
Dependency analysis.
Dependencies in CSS can be analyzed using the analyze_dependencies
option
when printing a style sheet. These include other style sheets referenved via
the @import
rule, as well as url()
references. See PrinterOptions.
When dependency analysis is enabled, @import
rules are removed, and url()
dependencies are replaced with hashed placeholders that can be substituted with
the final urls later (e.g. after bundling and content hashing).
Structs§
- Dependency
Options - Options for
analyze_dependencies
inPrinterOptions
. - Import
Dependency - An
@import
dependency. - Location
- A line and column position within a source file.
- Source
Range - Represents the range of source code where a dependency was found.
- UrlDependency
- A
url()
dependency.
Enums§
- Dependency
- A dependency.