Laravel-mix: Unexpected double slash generated using webp in URL Processing

Created on 11 Apr 2018  Â·  3Comments  Â·  Source: JeffreyWay/laravel-mix

  • Laravel Mix Version: 2.1.11
  • Node Version (node -v): 9.9.0
  • NPM Version (npm -v): 5.6.0
  • OS: ubuntu ( using workspace container of laradock )

I am using url processing with jpeg and webp and since a while (between mix 2.0.0 and 2.1.11), it's not working anymore with webp.

here is my scss code :

.no-webp .custom-background {
    background-image: url('../img/custom.jpeg');
}

.webp .custom-background {
    background-image: url('../img/custom.webp');
}

css generated with laravel mix 2.1.11 :

.no-webp .custom-background {
    background-image: url(/images/custom.jpeg?47ab273…);
}

.webp .custom-background {
    background-image: url(//images/custom.webp?1cb1372…);
}

css generated with laravel mix 2.0.0 :

.no-webp .custom-background {
    background-image: url(/images/custom.jpeg?47ab273…);
}

.webp .custom-background {
    background-image: url(/images/custom.webp?1cb1372…);
}
stale

All 3 comments

I have the same issue when trying to generate a service worker with Google Workbox. All the entry points have double slashes except chunk files have the correct path.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Not reproduced in webpack "4.0.15", thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rderimay picture rderimay  Â·  3Comments

Cheddam picture Cheddam  Â·  3Comments

mstralka picture mstralka  Â·  3Comments

jpriceonline picture jpriceonline  Â·  3Comments

nezaboravi picture nezaboravi  Â·  3Comments