# Relative Pfade (Icons, Fonts) - Grunt- vs Server- Compiler

**URL:** https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888
**Category:** Themes & Design
**Created:** [25. Januar 2016 um 13:00 UTC](https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888 "2016-01-25T13:00:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dupp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/dupp/32/7715_2.png) [@dupp](https://forum.shopware.com/u/dupp)
#### Post date: [25. Januar 2016 um 13:00 UTC](https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888/1 "2016-01-25T13:00:25Z")

</div>

Hallo, da die Pfade je nach verwendeten Kompiler unterschiedlich sind, habe ich mir behelfm#ßig eigene Variablen für die Ressourcen-Ordner gemacht. Je nachdem ob ich local mit grunt kompiliere oder später im fertigen Design auf dem Server, muss ich dann jeweils die Variable verändern. Ich löse das folgendermaßen: `/\* Pfad je nach Compiler \*/ // local // @csspath: "../../themes/Frontend/\*\*ThemeName\*\*/frontend/\_public/src"; // server @csspath: "../..";` gibt es dazu eine akkuratere Lösung?

---

<div class="post-metadata">

### Author: ![Gutverkaufen](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@Gutverkaufen](https://forum.shopware.com/u/Gutverkaufen)
#### Post date: [25. Januar 2016 um 13:12 UTC](https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888/2 "2016-01-25T13:12:16Z")

</div>

mir ist nicht ganz klar, warum du lokal nicht einfach genau so compilierst wie auf dem Server? Dann muss man es nicht anpassen (sind ja relative Pfade). So mach ich das jedenfalls.

---

<div class="post-metadata">

### Author: ![dupp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/dupp/32/7715_2.png) [@dupp](https://forum.shopware.com/u/dupp)
#### Post date: [25. Januar 2016 um 13:30 UTC](https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888/3 "2016-01-25T13:30:07Z")

</div>

Weil ich das Theme lokal erstelle und mit grunt kompiliere und das Theme beim Kunden auf dem Server mit den Boradmitteln kompiliert wird (aus dem Backend heraus)

---

<div class="post-metadata">

### Author: ![Creatixx](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Creatixx](https://forum.shopware.com/u/Creatixx)
#### Post date: [25. Januar 2016 um 14:36 UTC](https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888/4 "2016-01-25T14:36:14Z")

</div>

Hi, in 5.1.3 kommt hier eine Änderung. Schau mal [hier](https://github.com/shopware/shopware/commit/3642ab5ef8e0fab6372d5247fe3967893a1a8a95) vielleicht hilft es dir weiter. Gruß

---

<div class="post-metadata">

### Author: ![dupp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/dupp/32/7715_2.png) [@dupp](https://forum.shopware.com/u/dupp)
#### Post date: [25. Januar 2016 um 14:59 UTC](https://forum.shopware.com/t/relative-pfade-icons-fonts-grunt-vs-server-compiler/33888/5 "2016-01-25T14:59:46Z")

</div>

ahja, das könnte das Problem beheben :thumbup:
