A helper class to ease the creation of of chunk based on it's location.
You should not need to use this.
internal
• new Chunk()
▸ Static
fromDevServer(chunkId
): string
Creates definition for a chunk hosted on development server.
Name | Type | Description |
---|---|---|
chunkId |
string |
Id of the chunk. |
string
Chunk definition.
▸ Static
fromFileSystem(chunkId
): string
Creates definition for a chunk stored on filesystem on the target mobile device.
Name | Type | Description |
---|---|---|
chunkId |
string |
Id of the chunk. |
string
Chunk definition.
▸ Static
fromRemote(url
, options?
): string
Creates definition for a chunk hosted on a remote server.
Name | Type | Description |
---|---|---|
url |
string |
A URL to remote location where the chunk is stored. |
options |
Object |
Additional options. |
options.excludeExtension? |
boolean |
- |
string
Chunk definition.