File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,6 @@ module.exports = {
15
15
"no-process-env" : 0 ,
16
16
"no-process-exit" : 0 ,
17
17
"no-console" : 0 ,
18
+ "sort-keys" : 2 ,
18
19
} ,
19
20
} ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ async function buildSvgSetAsync(buildPrefix: OutputType) {
47
47
writeJsModule ( iconsObj , buildPrefix ) ,
48
48
] ) ;
49
49
50
- return { obj : iconsObj , count : icons . length } ;
50
+ return { count : icons . length , obj : iconsObj } ;
51
51
}
52
52
53
53
( async ( ) => {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export async function bundleCssIcons() {
8
8
name : string ;
9
9
css : string | null ;
10
10
} [ ] = cssIcons
11
- . map ( ( i ) => ( typeof i === "string" ? { name : i , css : null } : i ) )
11
+ . map ( ( i ) => ( typeof i === "string" ? { css : null , name : i } : i ) )
12
12
. sort ( ( a , b ) => ( a . name > b . name ? 1 : - 1 ) ) ;
13
13
14
14
const allIconSvgStrings = await Promise . all (
Original file line number Diff line number Diff line change @@ -172,18 +172,18 @@ export async function processSvgFilesAsync(type: OutputType) {
172
172
processed . forEach ( ( i ) => {
173
173
try {
174
174
const optimized = optimize ( i , {
175
- multipass : true ,
176
175
floatPrecision : 2 ,
176
+ multipass : true ,
177
177
plugins : [
178
178
{
179
179
name : "preset-default" ,
180
180
params : {
181
181
overrides : {
182
- removeViewBox : false ,
183
182
mergePaths : {
184
183
force : true ,
185
184
noSpaceAfterFlags : true ,
186
185
} ,
186
+ removeViewBox : false ,
187
187
} ,
188
188
} ,
189
189
} ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const cssIcons: (string | { name: string; css: string })[] = [
6
6
"Code" ,
7
7
"Strikethrough" ,
8
8
"Link" ,
9
- { name : "Quote" , css : "width: 17px;" } ,
9
+ { css : "width: 17px;" , name : "Quote " } ,
10
10
"Codeblock" ,
11
11
"Image" ,
12
12
"Table" ,
@@ -18,9 +18,9 @@ export const cssIcons: (string | { name: string; css: string })[] = [
18
18
"Help" ,
19
19
"Play" ,
20
20
"Share" ,
21
- { name : "PencilSm" , css : "width: 14px;\n height: 14px;" } ,
22
- { name : "TrashSm" , css : "width: 14px;\n height: 14px;" } ,
23
- { name : "Markdown" , css : "width: 21px;" } ,
21
+ { css : "width: 14px;\n height: 14px;" , name : "PencilSm " } ,
22
+ { css : "width: 14px;\n height: 14px;" , name : "TrashSm " } ,
23
+ { css : "width: 21px;" , name : "Markdown " } ,
24
24
"Achievements" ,
25
25
"FaceMindBlown" ,
26
26
"Wave" ,
You can’t perform that action at this time.
0 commit comments