File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " reduce-css-calc" ,
2
+ "name" : " @jfkued/ reduce-css-calc" ,
3
3
"version" : " 2.1.4" ,
4
4
"description" : " Reduce CSS calc() function to the maximum" ,
5
5
"keywords" : [
Original file line number Diff line number Diff line change 30
30
([0-9] + ("." [0-9] * )? | "." [0-9] + )ex\b return ' EXS' ;
31
31
([0-9] + ("." [0-9] * )? | "." [0-9] + )ch\b return ' CHS' ;
32
32
([0-9] + ("." [0-9] * )? | "." [0-9] + )rem\b return ' REMS' ;
33
+ ([0-9] + ("." [0-9] * )? | "." [0-9] + )rpx\b return ' RPXS' ;
33
34
([0-9] + ("." [0-9] * )? | "." [0-9] + )vw\b return ' VWS' ;
34
35
([0-9] + ("." [0-9] * )? | "." [0-9] + )vh\b return ' VHS' ;
35
36
([0-9] + ("." [0-9] * )? | "." [0-9] + )vmin\b return ' VMINS' ;
@@ -93,6 +94,7 @@ expression
93
94
| EXS { $$ = { type: ' ExValue' , value: parseFloat ($1 ), unit: ' ex' }; }
94
95
| CHS { $$ = { type: ' ChValue' , value: parseFloat ($1 ), unit: ' ch' }; }
95
96
| REMS { $$ = { type: ' RemValue' , value: parseFloat ($1 ), unit: ' rem' }; }
97
+ | RPXS { $$ = { type: ' RpxValue' , value: parseFloat ($1 ), unit: ' rpx' }; }
96
98
| VHS { $$ = { type: ' VhValue' , value: parseFloat ($1 ), unit: ' vh' }; }
97
99
| VWS { $$ = { type: ' VwValue' , value: parseFloat ($1 ), unit: ' vw' }; }
98
100
| VMINS { $$ = { type: ' VminValue' , value: parseFloat ($1 ), unit: ' vmin' }; }
You can’t perform that action at this time.
0 commit comments