diff options
author | Richard Lai <it.rclai@gmail.com> | 2015-09-24 16:06:17 +0300 |
---|---|---|
committer | Richard Lai <it.rclai@gmail.com> | 2015-09-24 16:06:17 +0300 |
commit | 7f45ac255ab328ddb0fd0e2d2d13b97b31bc6a6f (patch) | |
tree | 8e50d7bc6133e89849512ee33ef314f25aa79c7b /package.js | |
parent | 911312d61ee27eda034346dfe717d989cc92d1a4 (diff) |
Update support for Meteor 1.2
Diffstat (limited to 'package.js')
-rw-r--r-- | package.js | 9 |
1 files changed, 7 insertions, 2 deletions
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' |