File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- css
2
1
less
3
2
lock
4
3
sass
Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ pub struct Scanner {
84
84
/// All found extensions
85
85
extensions : FxHashSet < String > ,
86
86
87
+ /// All CSS files we want to scan for CSS variable usage
88
+ css_files : Vec < PathBuf > ,
89
+
87
90
/// All files that we have to scan
88
91
files : Vec < PathBuf > ,
89
92
@@ -248,6 +251,12 @@ impl Scanner {
248
251
. and_then ( |x| x. to_str ( ) )
249
252
. unwrap_or_default ( ) ; // In case the file has no extension
250
253
254
+ // Special handing for CSS files to extract CSS variables
255
+ if extension == "css" {
256
+ self . css_files . push ( path) ;
257
+ continue ;
258
+ }
259
+
251
260
self . extensions . insert ( extension. to_owned ( ) ) ;
252
261
self . changed_content . push ( ChangedContent :: File (
253
262
path. to_path_buf ( ) ,
You can’t perform that action at this time.
0 commit comments