When I am trying to deploy my application in my prod the WAR do not have the images directory so i get my application deploy without any images.
What could be the problem?
When I am trying to deploy my application in my prod the WAR do not have the images directory so i get my application deploy without any images.
What could be the problem?
It looks like the cause of the problem is "gulp-imagemin", as a workaround remove this line:
from: gulpfile.js
If gulp-imagemin says it minified 0 images, it's often due to missing binaries needed in these node modules:
If you look eg. into
node_modules/optipng-bin
, you'll see that theoptipng
binary is missing (should be in avendor
subfolder).They are not compiled during npm install, and it's completely silent :)
Installing the
zlib1g-dev
package fixed the issue on a fresh Debian 9 system.Generally speaking, you need several build tools on your system to build a JHipster prod package (make, g++ for scss, etc.).
Your images must be in
src/main/webapp/content/images
to get minified and copied by gulp totarget/www/content/images
and then be copied at the root of you war incontent/images
by maven or gradle.