# webpack error, no loader configured , Hintergrundbild

**URL:** <https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528>\
**Category:** Themes & Design\
**Created:** [16. März 2020 um 12:02 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528 "2020-03-16T12:02:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![masmut](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@masmut](https://forum.shopware.com/u/masmut)\
**Post date:** [16. März 2020 um 12:02 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528/1 "2020-03-16T12:02:06Z")

</div>

Hallo,

ich will für den Hintergrund des headers ein Hintergrundbild anbringen.

Habe ein eigenes theme erstellt, installiert und aktiviert. Änderungen im scss werden übernommen. Wenn ich jetzt eine bg-header.jpg in /app/custom/plugins/XXXTemplate/src/Resources/app/storefront/dist/assets/bg-header.jpg&nbsp; hinterlge unb über scss einfügen will, bekomme ich folgende Fehlermeldung:

> Failed to compile
> 
> Module parse failed: Unexpected character ‚�‘ (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See [Concepts | webpack](https://webpack.js.org/concepts#loaders) (Source code omitted for this binary file)

&nbsp;

VG, Masmut

---

<div class="post-metadata">

**Author:** ![masmut](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@masmut](https://forum.shopware.com/u/masmut)\
**Post date:** [19. März 2020 um 20:13 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528/2 "2020-03-19T20:13:38Z")

</div>

Kann man den keine JPG-Bilder als

> background: _url(„…/…/dist/assets/bg-header.jpg“) 50% 50%;_

in der base.scss nehmen? Hat jemand Erfahrung damit?

---

<div class="post-metadata">

**Author:** ![masmut](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@masmut](https://forum.shopware.com/u/masmut)\
**Post date:** [23. März 2020 um 14:41 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528/3 "2020-03-23T14:41:42Z")

</div>

&nbsp;

Hier steht, wie es gemacht werden muss:

[https://forum.shopware.com/discussion/62002/statische-ressourcen-wie-bilder-schriften-im-plugin-public-folder#latest](https://forum.shopware.com/discussion/62002/statische-ressourcen-wie-bilder-schriften-im-plugin-public-folder#latest)

Jetzt werden die Bilder als Hintergrund eingebunden,

aber **storefront:hot-proxy** funktioniert damit nicht mehr!

---

<div class="post-metadata">

**Author:** ![piccolina](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@piccolina](https://forum.shopware.com/u/piccolina)\
**Post date:** [23. März 2020 um 16:41 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528/4 "2020-03-23T16:41:03Z")

</div>

Hallo, Frage hierzu: was macht der storefront hot-proxy?

Was geht dann nichtmehr, wenn der nicht funktioniert?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![masmut](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@masmut](https://forum.shopware.com/u/masmut)\
**Post date:** [23. März 2020 um 18:47 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528/5 "2020-03-23T18:47:55Z")

</div>

./phs.phar storefront hot-proxy liefert

> This relative module was not found:  
> &nbsp;&nbsp; &nbsp;  
> &nbsp;&nbsp; &nbsp;\* …/…/…/bundles/MMtemplate/bg-header.jpg in ./node\_modules/css-loader/dist/cjs.js??ref–8-1!./node\_modules/postcss-loader/src??ref–8-2!./node\_modules/sass-loader/lib/loader.js??ref–8-3!/app/var/theme-entry.scss

und Frontend ist zerschossen.

---

<div class="post-metadata">

**Author:** ![hillebrandlukas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/hillebrandlukas/32/10506_2.png) [@hillebrandlukas](https://forum.shopware.com/u/hillebrandlukas)\
**Post date:** [18. Juni 2020 um 17:38 UTC](https://forum.shopware.com/t/webpack-error-no-loader-configured-hintergrundbild/65528/6 "2020-06-18T17:38:55Z")

</div>

Irgendeine Lösung? Habe ein ähnliches Problem! Danke
