0
我剛升級到流星1.2.1。我有一個本地fontello軟件包,圖標不再顯示在屏幕上。流星1.2無法從包中加載字體
到package.js文件的路徑爲:
/packages/fontello/package.js
這個文件的內容是:
Package.describe({
name: 'fontello',
version: '0.0.1',
summary: '',
git: '',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.0.3.1');
api.addAssets('css/fontello.css', "client");
api.addAssets('css/animation.css', "client");
api.addAssets('font/fontello.eot', "client");
api.addAssets('font/fontello.svg', "client");
api.addAssets('font/fontello.ttf', "client");
api.addAssets('font/fontello.woff', "client");
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('fontello');
api.addFiles('fontello-tests.js');
});
我似乎無法理解這是爲什麼?