Skip to content

Commit

Permalink
Merge pull request #147 from p2pweb-me/patch-1
Browse files Browse the repository at this point in the history
Update API.md
  • Loading branch information
aui authored Dec 19, 2017
2 parents 93f9ac3 + c290fb5 commit f56dc05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fontSpider.compressor(webFonts, options, callback)
``` javascript
var fontSpider = require('font-spider');

fontSpider.spider([__diranme + '/index.html'], {
fontSpider.spider([__dirname + '/index.html'], {
silent: false
}).then(function(webFonts) {
return fontSpider.compressor(webFonts, {backup: true});
Expand All @@ -65,7 +65,7 @@ fontSpider.spider([__diranme + '/index.html'], {
/**
* 映射的文件规则(支持正则) - 与 `resourceMap` 参数互斥 - 可以将远程字体文件映射到本地来
* @type {Array<Array<String>>}
* @example [['http://font-spider.org/font', __diranme + '/font'], ...]
* @example [['http://font-spider.org/font', __dirname + '/font'], ...]
*/
map: [],

Expand Down

0 comments on commit f56dc05

Please sign in to comment.