1.0.0 • Published 6 years ago

that-depends-scss v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

that-depends-scss

Build Status

Reads in JS, returns the imported/required file paths.

Usage

// foo.scss
@import 'z';
@import 'a';
@import './a';
import thatDependsJS from 'that-depends-scss'

const fooSource = fs.readFileSync('foo.js', 'utf8')
const dependenciesOfFoo = thatDependsSCSS(fooSource)

TODO
// returns ['./a', 'a', 'z']