I'm trying to inject some CSS- file which holds styling information about my component.
The style sheet is located in a folder called assets: /plugins/vannut/button/assets/style.css
The component regeistration file is located in: /plugins/vannut/button/components/Button.php
I copied the onRun() function from the injecting-assets part of the documentation (https://octobercms.com/docs/plugin/components#component-assets)
public function onRun()
{
$this->addJs('/plugins/acme/blog/assets/javascript/blog-controls.js');
}
This results in a 404 not found in my browser. So the JS is being injected in my layout.
But changing this to ->addCss() does not result in a 404 or when using the right path for the css file in the right styling.
How come? I do have a {% styles %} tag in my layout-file ...