api.addAssets

package.js

api.addAssets(filenames, architecture)

Specify asset files for your package. They can be accessed via the Assets API from the server, or at the URL /packages/username_package-name/file-name from the client, depending on the architecture passed.

Arguments

filenames String or Array of Strings

Paths to the asset files.

architecture String or Array of Strings

Specify where this asset should be available (e.g., 'server', 'client', 'web.browser', 'web.cordova'). You can specify multiple architectures by passing in an array, for example ['web.cordova', 'os.linux'].

doc_Meteor
2016-05-29 17:17:50
Comments
Leave a Comment

Please login to continue.