CSS background-image not building
I don't know if this is the right place to ask, but I am developing a theme and I want a CSS background-image, and when I try this in the admin.style.css:
background-image: url('/assets/extensions/{identifier}/icon.png');
it works and builds, but when I do the exact same on the client.style.css it doesn't work and gives me this error:
- error in next message, the message was too long and Discord complained :( -
I checked and the file exists.Solution:Jump to solution
if you want to import images, make a file called
client/wrapper.blade.php
, link it in conf.yml
, paste your css and wrap it in <style/> tags12 Replies
Did you assign admin.style.css to
dashboard: css
?omg this is an old template where did you get that from
ooh wait darkenate
fair enough
I looked at the first free theme on the site that was open source
I didn't want to start from scratch
alright can you show the line referencing your icon.png from client.style.css?
background-image: url('/assets/extensions/{identifier}/icon.png');
I just copy pasted it from the admin.style.css.client css is rendered using react
Solution
if you want to import images, make a file called
client/wrapper.blade.php
, link it in conf.yml
, paste your css and wrap it in <style/> tagsOkay ill try that, but do I need to update?
not really, your configs still fine
Ah, I got it working thanks!
And building got so much faster without rebuilding with Yarn.