Namespace: gulpAudiospriteFixup

plugins.gulpAudiospriteFixup

Type Aliases

PathProvider

Ƭ PathProvider: (key: string) => string

Mapping function to use when generating paths for the audiosprite sounds. The function receives one parameter which is the key in the spritemap of the sheet and should return the relative path of the original file.

Type declaration

▸ (key): string

Parameters
Name Type
key string
Returns

string

Functions

default

default(pathProvider): Transform

Gulp plugin to fixup gulp-audiosprite generated .json files so that all sounds in the spritemap include a path property. The paths are generated by the provider path mapper function.

Parameters

Name Type Description
pathProvider PathProvider The path mapping function

Returns

Transform