johannschopplich / kirby-vue3-starterkit

✨ Kirby + Vue SPA starter: automatic routing, i18n, SEO and more!
MIT License
206 stars 19 forks source link

Custom Panel CSS file path #18

Closed Mark-Pilkington closed 3 years ago

Mark-Pilkington commented 3 years ago

Hi! If I wanted to have a custom panel.css file, do you maybe know what path I'd have to use?

I tried a hardcoded http://127.0.0.1:3000/static/css/panel.css to a custom folder named "static" however unfortunately it's not loading into the <head> part of the panel though. The path is correct though. I don't actually know if it's an issue on my setup's side or a Vue Starterkit issue.

This is the config.php file's content:

    'panel' => [
        'install' => env('KIRBY_PANEL_INSTALL', false),
        'slug' => env('KIRBY_PANEL_SLUG', 'panel'),
        'css' => 'http://127.0.0.1:3000/static/css/panel.css'
    ],

Thanks! 😃

https://getkirby.com/docs/reference/system/options/panel#custom-panel-css

Mark-Pilkington commented 3 years ago

Withdrawn, figured it out, it needs a relative path apparently.

johannschopplich commented 3 years ago

Jep, those should be relative paths based on the Kirby index route. Glad to hear you figured it out by yourself.