This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -8,24 +8,24 @@ const destination = "../Sources/swift-doc/Generated/CSS.swift";
8
8
const input = fs . readFileSync ( source ) ;
9
9
10
10
postcss ( [
11
- require ( "postcss-preset-env" ) ( {
12
- stage : 0 ,
13
- features : {
14
- "matches-pseudo-class" : false ,
15
- } ,
16
- } ) ,
17
- require ( "cssnano" ) ( {
18
- preset : "default" ,
19
- } ) ,
11
+ require ( "postcss-preset-env" ) ( {
12
+ stage : 0 ,
13
+ features : {
14
+ "matches-pseudo-class" : false ,
15
+ } ,
16
+ } ) ,
17
+ require ( "cssnano" ) ( {
18
+ preset : "default" ,
19
+ } ) ,
20
20
] )
21
- . process ( input , { from : source , to : destination } )
22
- . then ( ( result ) => {
23
- const output = [
24
- `// This file was automatically generated and should not be edited.` ,
25
- `let css: String = #"${ result . css } "#` ,
26
- ] . join ( "\n\n" ) + "\n" ;
21
+ . process ( input , { from : source , to : destination } )
22
+ . then ( ( result ) => {
23
+ const output = [
24
+ `// This file was automatically generated and should not be edited.` ,
25
+ `let css: String = #"${ result . css } "#` ,
26
+ ] . join ( "\n\n" ) + "\n" ;
27
27
28
- fs . mkdir ( path . dirname ( destination ) , ( ) => {
29
- fs . writeFileSync ( destination , output ) ;
30
- } ) ;
28
+ fs . mkdir ( path . dirname ( destination ) , ( ) => {
29
+ fs . writeFileSync ( destination , output ) ;
31
30
} ) ;
31
+ } ) ;
You can’t perform that action at this time.
0 commit comments