1 | /**
|
2 | * 字体精简
|
3 | * @memberOf Watch
|
4 | */
|
5 | let simplifyFont = (option)=>{
|
6 | const {fs,path,pathInfo,getDirFilesPath,tip} = {
|
7 | fs:require('fs-extra'),
|
8 | path:require('path'),
|
9 | pathInfo:require('./getPathInfo'),
|
10 | getDirFilesPath:require('./getDirFilesPath'),
|
11 | tip:require('./tip'),
|
12 | font:require('font-spider')
|
13 | };
|
14 |
|
15 | let src = option.src;
|
16 |
|
17 |
|
18 | return ()=>{
|
19 | return new Promise((resolve,reject)=>{
|
20 | console.log(font);
|
21 | resolve(1);
|
22 | });
|
23 | };
|
24 |
|
25 | };
|
26 |
|
27 | module.exports = simplifyFont; |
\ | No newline at end of file |