使用JHipster进行生产构建时找不到图像 [英] Images not found when doing a production build with JHipster

查看:91
本文介绍了使用JHipster进行生产构建时找不到图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在产品中部署应用程序时,WAR不会 有图像目录,所以我没有任何部署我的应用程序 图片.

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.

可能是什么问题?

推荐答案

问题的原因似乎是"gulp-imagemin",作为一种解决方法,请删除此行:

It looks like the cause of the problem is "gulp-imagemin", as a workaround remove this line:

.pipe(imagemin({optimizationLevel: 5, progressive: true, interlaced: true}))

来自:gulpfile.js

from: gulpfile.js

这篇关于使用JHipster进行生产构建时找不到图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆