From: Richard Lai Date: Thu, 24 Sep 2015 13:06:17 +0000 (-0400) Subject: Update support for Meteor 1.2 X-Git-Tag: v3.3.6~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17693%2Fhead;p=thirdparty%2Fbootstrap.git Update support for Meteor 1.2 --- diff --git a/package.js b/package.js index 9b98df9518..ae1c8dbad7 100644 --- a/package.js +++ b/package.js @@ -13,13 +13,18 @@ Package.describe({ 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'