xzyfer / sass-graph

Parses import dependencies from a directory of sass files
MIT License
76 stars 59 forks source link

CLI usage instructions unclear #116

Open mattiagiuffrida-st opened 3 years ago

mattiagiuffrida-st commented 3 years ago

I'm trying to use the CLI tool provided with this package, but with no luck. With the JS API, I can run the following and get the result I want:

const sassGraph = require('sass-graph');
console.log(sassGraph.parseFile(
  'app/packs/entrypoints/publisher-profile.scss',
  {
    loadPaths: ['app/assets/stylesheets'],
  }
));

But I've been unable to replicate this successfully with the CLI tool. I've tried the following: