Space level of styling does not exist
When a new library is defined in Drupal the CSS can be added in the following levels:
- base
- layout
- component
- state
- theme
In the octavia_camouflage_library_info_alter
function the non-existent space
level is being used:
$libraries['global']['css']['space'] = [
$base_path . $css_file_path => [],
];
Triggering in my local the following error:
The website encountered an unexpected error. Please try again later.
AssertionError: Invalid CSS category: space. See https://www.drupal.org/node/2274843. in assert() (line 163 of core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).
This error is only displayed if the assertions
are configured in the server and the documentation suggests to enabled them on the local/testing environments, while this is not triggering an error on live that CSS is being ignored.
Edited by David Valdez