Add: genIcon npm script

This commit is contained in:
surunzi
2017-10-15 13:18:40 +08:00
parent 1a9bcbda49
commit 839f6c7014
2 changed files with 4 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ function genCssFile(fontData)
fontData + '\') format(\'woff\');');
data = data.join('\n');
data = data.replace(/icon-"/g, 'eruda-icon-"');
data = data.replace(/font-family: 'icomoon'/g, 'font-family: \'eruda-icon\'');
writeCssFile(data);
});