that-depends-scss

1.0.0 • Public • Published

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']

Readme

Keywords

none

Package Sidebar

Install

npm i that-depends-scss

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.72 kB

Total Files

10

Last publish

Collaborators

  • reergymerej