default
bundler
The default bundler of HTML, CSS & JS
Provides the view and the pack functions with a list of entries for an asset type relative to the client directory. The default implementation is used.
An entry describes:
Param | Type | Details |
---|---|---|
assetType | String | js/css/tmpl |
systemAssets | Object | Collection of libs, modules, initCode |
[AssetEntry] | List of output entries |
Called when the server is started. Does nothing.
Return entries for the loader/start/module depending on includes.system client config and system assets. Multiple arguments will attempt to add module for the name. Special module names are 'loader' and 'start'.
AssetEntry | Resource entries array |
Called when the server is stopped. Does nothing.
Before client-side code is sent to the browser any file which is NOT a library (e.g. /client/code/libs) is wrapped in a module wrapper (to keep vars local and allow you to require() one file in another).
The 'system' directory is a special case - any module placed in this dir will not have a leading slash
Param | Type | Details |
---|---|---|
assetType | String | js/css/tmpl |
systemAssets | Object | Collection of libs, modules, initCode |
[AssetEntry] | List of output entries |