How to add JS and CSS files in Plugin frontend template?

Hi, i am developing a plugin. In which i created a custom model. and want to display stats data on Product/Item detail page.

I extended the detail page. Now i need to add Css and Js file. How can i acheive this?

Search for addLessFiles and addJsFiles on Shopware 5 Plugin update guide

1 „Gefällt mir“

Thats how you do it in the standard plugin system, not the new one.

1 „Gefällt mir“