I want to load a custom css file for the admin panel from a custom module folder.
My layout xml file looks like this
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="Vendor_Module::test.css" />
</head>
</page>
I've also tried
<head>
<css src="Vendor_Module::css/test.css" />
</head>
I tried putting the file in
Vendor/Module/view/web/css/test.css
or
Vendor/Module/view/adminhtml/web/css/test.css
After each I cleared the cache, the page cache and the pub/static folder.
The css file is not loading. Does anyone know why ?
bin/magento setup:upgrade
– R.S Feb 23 at 12:49bin/magento setup:upgrade
always seem to solve my issue – R.S Feb 23 at 13:12