shopware5 / SwagLightweightModule

Demo plugin which highlights the new functionality to create backend modules using HTML, CSS and JavaScript
MIT License
12 stars 5 forks source link

Custom css #7

Closed DiarQoroviqi closed 3 years ago

DiarQoroviqi commented 3 years ago

Is it possible to add custom css file on css folder and then include it to the main layout?

mitelg commented 3 years ago

hey @DiarQoroviqi

have a look here: https://github.com/shopwareLabs/SwagLightweightModule/blob/master/Resources/views/backend/_base/layout.tpl#L6 we load a custom.css here, which is located here: https://github.com/shopwareLabs/SwagLightweightModule/tree/master/Resources/views/backend/_resources/css

DiarQoroviqi commented 3 years ago

I did it in the same way but for some reasons it doesn't work? Do I have to add any extra config or something else?

mitelg commented 3 years ago

not that I know of :thinking:

to be honest this is a plugin, we haven't maintained in a while. and I don't know if it is even working anymore :see_no_evil:

teiling88 commented 3 years ago

@mitelg it is working with Shopware 5.6.10 :-) I used it some weeks ago as a basic for a new Plugin :-)