chilio / laravel-dusk-ci

Docker Test suite for Laravel Dusk in gitlab CI
MIT License
159 stars 51 forks source link

Laravel mix uses libpng16 which is not available for xenial #26

Closed AngeloAvv closed 6 years ago

AngeloAvv commented 6 years ago

Hi, after adding the command .copy('resources/assets/images', 'public/images') inside my webpack.mix.js file, it's impossible to finish the build since npm cannot find libpng16.so

Doing some research, i've found that this library does not come with ubuntu xenial per default. Could it be easy for you to include this library since other developers using your docker image may face this issue?

chilio commented 6 years ago

Hi @AngeloAvv are you sure this is due to copy command? I use it to copy .png files on regular basis and everything works fine so far... What error do you get? BTW Build with libpng16 is running now in dev branch (should be ready in 15 minutes), so let me know if it solved your problem...

AngeloAvv commented 6 years ago

Hi @chilio , thank you for your reply. After digging around, I found that it was my mistake with a laravel mix configuration.

I solved by adding .options({ processCssUrls: false })

chilio commented 6 years ago

@AngeloAvv ok thanks for update. So I assume that adding the libpng16 lib didn't change a thing on your end? Did you have an opportunity to test it? BTW package is now reverting to its previous state without that lib....

AngeloAvv commented 6 years ago

I tried with both, and the problem was not related with the library. I'm sorry for wasting your time