Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PathAliasImporter

The PathAliasImporter is a replacement for the fileystem importer. Relative import paths are first checked to see if they match an existing file relative to the from identifier (when provided). Then if the relative import path has a first segment that is any of the aliases provided the path will be made absolute using that alias's path location. Finally any relative path is resolved against the rootDir specified from {CssBlockOptionsReadonly}.

When debugging an identifier it is made relative to an alias, if one exists, where the identifier is within an aliased directory. If several such aliased paths exist, the most specific alias will be used.

Hierarchy

Implements

Index

Constructors

constructor

Properties

aliases

aliases: Alias[]

Methods

debugIdentifier

defaultName

filesystemPath

identifier

import

syntax

Generated using TypeDoc