twopluszero / next-images

Import images in Next.js (supports jpg, jpeg, svg, png and gif images)
MIT License
948 stars 67 forks source link

Breaks with native css/sass/scss in Next.js 9.3+ #31

Closed tomdohnal closed 4 years ago

tomdohnal commented 4 years ago

Next.js now imports images from css/sass/scss file by itself and we use next-images package together with it, it breaks the native image import in css/sass/scss functionality.

As suggested in this issue, the solution is to check the issuer in the webpack rule specification.

I can create a PR with the fix if you're interested.

arefaslani commented 4 years ago

Thanks @tomdohnal for reporting this issue. I'll fix that today and will release a new patch for that.

stegano commented 4 years ago

Hope this issue will be resolved quickly

arefaslani commented 4 years ago

@tomdohnal @stegano This issue is fixed now. I'm really sorry, I had two projects to work on and it took me some time to come back to this repo and fix this issue.

stegano commented 4 years ago

Thanks for fixing this issue 👍 It works!

tomdohnal commented 4 years ago

@tomdohnal @stegano This issue is fixed now. I'm really sorry, I had two projects to work on and it took me some time to come back to this repo and fix this issue.

No worries at all :) Thank you for the fix :)