Property | Type | Description | |
---|---|---|---|
$baseUrl | The base URL for the require.js configuration. |
Method | Description | |
---|---|---|
aggregateScripts ( array $package, array $scripts, string $file ) : boolean | Concatenate all scripts together into one destination file. | |
init ( ) | ||
process ( ) | ||
requireJs ( array $json = [] ) : string | Constructs the require.js file from the provided require.js JSON array. | |
requireJson ( array $packages ) : array | Creates a require.js configuration from an array of packages. |
Method | Description | |
---|---|---|
arrayMergeRecursiveDistinct ( array &$array1, array &$array2 ) : array | Merges two arrays without changing string array keys. Appends to array if keys are numeric. | |
newAssetCollection ( ) : Assetic\Asset\AssetCollection |
protected newAssetCollection ( ) : Assetic\Asset\AssetCollection | ||
return | Assetic\Asset\AssetCollection |
public requireJson ( array $packages ) : array | ||
$packages | array | An array of packages from the composer.lock file. |
return | array | The built JSON array. |