find-unused-sass-variables icon indicating copy to clipboard operation
find-unused-sass-variables copied to clipboard

@import support

Open MartijnCuppens opened this issue 6 years ago • 3 comments

Hi guys,

I just did some tests with this tool, but ran into an issue when variables are used outside the folder that is scanned.

For example:

$variable: value;

@import "../path-outside-scanned-folder/variable-is-used-here.scss";

This will erroneously fail.

I tried to solve this, but then I realised #4 needed to be fixed first because a way to scan a file is needed.

MartijnCuppens avatar Sep 22 '18 13:09 MartijnCuppens

Hey, @MartijnCuppens.

Yeah, the tool's logic is pretty dumb as you may have seen. But any help is welcome :)

XhmikosR avatar Sep 22 '18 13:09 XhmikosR

Haha, that's honest. I'm not really experienced with these things, but I'll have a look if I can extend or improve something.

MartijnCuppens avatar Sep 22 '18 13:09 MartijnCuppens

@XhmikosR @MartijnCuppens can be solve this issue by this PR https://github.com/XhmikosR/find-unused-sass-variables/pull/115

danny007in avatar Jan 23 '21 13:01 danny007in