Package.onUse(function (api) {
api.versionsFrom('METEOR@1.0');
api.use('jquery', 'client');
- api.addFiles([
+ var assets = [
'dist/fonts/glyphicons-halflings-regular.eot',
'dist/fonts/glyphicons-halflings-regular.svg',
'dist/fonts/glyphicons-halflings-regular.ttf',
'dist/fonts/glyphicons-halflings-regular.woff',
'dist/fonts/glyphicons-halflings-regular.woff2'
- ], 'client', { isAsset: true });
+ ];
+ if (api.addAssets) {
+ api.addAssets(assets, 'client');
+ } else {
+ api.addFiles(assets, 'client', { isAsset: true });
+ }
api.addFiles([
'dist/css/bootstrap.css',
'dist/js/bootstrap.js'