You're viewing the documentation forv2.Current latest version isv5.
View latest version here.
Version: v2

Class: Chunk

A helper class to ease the creation of of chunk based on it's location.

You should not need to use this.

internal

Table of contents

Constructors

Methods

Constructors

constructor

• new Chunk()

Methods

fromDevServer

▸ Static fromDevServer(chunkId): string

Creates definition for a chunk hosted on development server.

Parameters

Name Type Description
chunkId string Id of the chunk.

Returns

string

Chunk definition.

Defined in

Chunk.ts:17


fromFileSystem

▸ Static fromFileSystem(chunkId): string

Creates definition for a chunk stored on filesystem on the target mobile device.

Parameters

Name Type Description
chunkId string Id of the chunk.

Returns

string

Chunk definition.

Defined in

Chunk.ts:29


fromRemote

▸ Static fromRemote(url, options?): string

Creates definition for a chunk hosted on a remote server.

Parameters

Name Type Description
url string A URL to remote location where the chunk is stored.
options Object Additional options.
options.excludeExtension? boolean -

Returns

string

Chunk definition.

Defined in

Chunk.ts:40