# \[PLUGIN\]\[EVENTS\]\[Theme\_Compiler\_Collect\_Plugin\_Less|Theme\_Compiler\_Collect\_Plugin\_Javascript\] Wie?

**URL:** <https://forum.shopware.com/t/plugin-events-theme-compiler-collect-plugin-less-theme-compiler-collect-plugin-javascript-wie/52880>\
**Category:** Shopware 5\
**Created:** [14. Mai 2018 um 12:01 UTC](https://forum.shopware.com/t/plugin-events-theme-compiler-collect-plugin-less-theme-compiler-collect-plugin-javascript-wie/52880 "2018-05-14T12:01:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Floffwl](https://avatars.discourse-cdn.com/v4/letter/f/47e85d/32.png) [@Floffwl](https://forum.shopware.com/u/Floffwl)\
**Post date:** [15. Mai 2018 um 13:26 UTC](https://forum.shopware.com/t/plugin-events-theme-compiler-collect-plugin-less-theme-compiler-collect-plugin-javascript-wie/52880/5 "2018-05-15T13:26:52Z")

</div>

Uhh sorry, vor lauter tippen & zippen hab ich doch glatt meine Antwort vergessen… ^^

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Das ist hier im Startup-Guide aber auch alles beschrieben:&nbsp;[https://developers.shopware.com/developers-guide/plugin-quick-start/#extending-the-template](https://developers.shopware.com/developers-guide/plugin-quick-start/#extending-the-template)

Ich pick mir davon mal das meines Erachtens wesentlichste heraus:

> Frontend resources auto-registration[Anchor link for: frontend resources auto registration](https://developers.shopware.com/developers-guide/plugin-quick-start/#frontend-resources-auto-registration)
> 
> Additions to CSS, LESS and JavaScript resources had to be registered via `Theme_Compiler_Collect_Plugin_*` events. Since Shopware 5.2.13 the registration will be done automatically. Just place the resources into the following directories:
> 
> - `custom/plugins/SwagResource/Resources/frontend/css/**.css`
> - `custom/plugins/SwagResource/Resources/frontend/js/**.js`
> - `custom/plugins/SwagResource/Resources/frontend/less/all.less`
> 
> The `css` and `js` directories may contain arbitrary sub directories. `@import`s in `all.less` will be resolved.
> 
> SwagResource  
> ├── Resources  
> │ └── frontend  
> │ ├── css  
> │ │ ├── \*  
> │ │ │ └── \*.css  
> │ │ └── \*.css  
> │ ├── js  
> │ │ ├── \*  
> │ │ │ └── \*.js  
> │ │ └── \*.js  
> │ └── less  
> │ └── all.less  
> └── SwagResource.php

Nice one! Genau das hab ich gesucht. Danke!

Lg Flo

---

_[View the full topic](https://forum.shopware.com/t/plugin-events-theme-compiler-collect-plugin-less-theme-compiler-collect-plugin-javascript-wie/52880)._
