Skip to content
Find the dependencies of an scss file
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
Readme.md
index.js
package.json

Readme.md

detective-scss npm npm

Find the dependencies of an scss file

npm install --save detective-scss

It's the SCSS counterpart to detective, detective-amd, detective-es6, detective-sass.

Usage

var detective = require('detective-scss');

var content = fs.readFileSync('styles.scss', 'utf8');

// list of imported file names (ex: '_foo.scss', '_foo', etc)
var dependencies = detective(content);

Related

Check out node-sass-lookup if you want to map a sass/scss dependency to a file on your filesystem.

License

MIT

You can’t perform that action at this time.