-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on FreeBSD #41
Comments
@moroz Did you find any solution? |
@frossi85 I think at the time I just left the images as is, without compression. Another quick and dirty workaround would be building assets in a continuous integration environment like CodeBuild, i.e. on Linux... |
@moroz thanks for answering. My case is not exactly like yours I am trying to optimize images that where uploaded by my app users but having similar issues |
Is imagemagick an option? I think I had it working on FreeBSD under Elixir. |
Hello,
I am trying to build a Webpack bundle for my Phoenix project, and for research I decided to give it a shot on FreeBSD.
My application repo is on Gitlab, the webpack bundle is in
assets/
directory.I have installed mozjpeg from BSD ports, and there is a
cjpeg
binary available:I know that
mozjpeg
is available in some way, becauseimage-webpack-loader
can use it and produces almost the same images as on my OSX machine. However,image-webpack-loader
seems to only work with images that are imported in CSS, such as withbackground-image
, and it doesn't optimise images copied over using CopyWebpackPlugin. I can't get these settings to run in Webpack on FreeBSD (Linux and OSX are fine):The first error is that there is no cjpeg binary in
vendor/
:When I create a symbolic link to the cjpeg binary installed in the system, it's no good either:
Any suggestions on how this could be solved? I am really curious about FreeBSD and I hope I could help fix this problem.
Best regards,
KM
The text was updated successfully, but these errors were encountered: