Configuration

The Stolz/Assets configuration is under the groups key in this config file

assets.collections_dir

Directory contening copied assets in the public directory

directory : project_root/public/{assets.collections_dir}/{asset_file_alias}/

default set to collections

assets.directories

List of directories contening packages with .assets.json files

you can set options by directory, see bellow

default set to project_root/vendor project_root/node_modules project_root/bower_components
 return [
    'directories'=>[
        base_path('vendor') => [
            'max_depth'=>3
        ],
        base_path('node_modules'),
        base_path('bower_components'),
    ],
 ];

you can set the directory path in key for provide options in the value array or setting simply the path in value with no options

assets.directories.{options}

max_depth

for performance reason you can limit the depth in scanned directories

default is set by the `assets.max_depth` options & her default value is 3

assets.max_depth

Max depth in scanned directories

for performance reason you can limit the depth in scanned directories, it can be override by directories options

default set to 3 with 3, the max is {directory_path}/first_sub:{vendor}/second_sub:{package}/third_sub:{assets_dir}/.assets.json

assets.file_prediction

this option is unused for now & it must is set to false, if not false the package throw an error

assets.copy_mode

This option controls the copy mode of packages assets for make it accesible from public dir.

2 options (in lowercase)

  • copy : simply copy the selected directories by the asset file in the public dir, if you modify one of the inclued files you must regenerate with command `php artisan asset:dump-collections`
  • symlink : symlink the dirs for avoid to run the command for all modification but only if the assets file is modified
default set to copy

assets.generate_when_local

Autoregenerate & Copy assets collections for all request on local env

Warning this config if set to true, drastically slow application performance

default set to false