File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,25 @@ Promise.all(tasks).then((res) => {
46
46
// logger.success(`文件写入成功`);
47
47
}
48
48
)
49
+ const themeDarkFile = path . resolve ( __dirname , '../dist/styles/theme-dark.css' )
50
+ fs . copy (
51
+ path . resolve ( __dirname , '../dist/styles/theme-dark.scss' ) ,
52
+ themeDarkFile
53
+ ) . then ( ( ) => {
54
+ fs . writeFileSync ( themeDarkFile , fs . readFileSync ( themeDarkFile ) . toString ( ) . replace ( / \/ \/ [ ^ \n ] * \n / gi, '' ) )
55
+ } )
56
+ const themeDefaultFile = path . resolve ( __dirname , '../dist/styles/theme-default.css' )
57
+ fs . copy (
58
+ path . resolve ( __dirname , '../dist/styles/theme-default.scss' ) ,
59
+ themeDefaultFile
60
+ ) . then ( ( ) => {
61
+ fs . writeFileSync ( themeDefaultFile , fs . readFileSync ( themeDefaultFile ) . toString ( ) . replace ( / \/ \/ [ ^ \n ] * \n / gi, '' ) )
62
+ } )
63
+ const themeJmappFile = path . resolve ( __dirname , '../dist/styles/theme-jmapp.css' )
64
+ fs . copy (
65
+ path . resolve ( __dirname , '../dist/styles/theme-jmapp.scss' ) ,
66
+ themeJmappFile
67
+ ) . then ( ( ) => {
68
+ fs . writeFileSync ( themeJmappFile , fs . readFileSync ( themeJmappFile ) . toString ( ) . replace ( / \/ \/ [ ^ \n ] * \n / gi, '' ) )
69
+ } )
49
70
} )
You can’t perform that action at this time.
0 commit comments