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']
.
Please login to continue.