postcss-ast-dependencies
Inspects postcss ASTs for dependency identifiers.
Install
npm install --save postcss-ast-dependencies
Example
;; const ast = postcss; const deps = ; console
Notes
Lists of objects are returned, where each object has the value
of the identifier as a source
prop. Rather than simply returning
lists of strings, we use objects as it leaves open the potential
for more contextual information to be provided in a
backwards-compatible manner.