Assets

Introduction

Specify the assets to include per the collection they should be added to.

protected $assets = [
    'scripts.js' => [
        'anomaly.theme.example::js/table/initialize.js',
        'anomaly.theme.example::js/table/example.js',
    ],
    'styles.css' => [
        'anomaly.theme.example::scss/table/example.scss',
    ]
];

You can also set assets dynamically.

$builder->addAsset($collection, $asset);