简体   繁体   English

带生产资料的Jhipster

[英]Jhipster with production profile

I have built my jhipster application in production version(frontend app), it did minify all the javascript files and html files, I can see that inside the war, and I run the application in production version too as after completely starting it says jhipster started and the profile has swagger, prod. 我已经在生产版本(前端应用)中构建了我的jhipster应用程序,它确实缩小了所有javascript文件和html文件,我可以在战争中看到这一点,并且在完全启动后也以生产版本运行了该应用程序,因为它表示jhipster已启动和刺客,刺。 But when I access my application there is little source folder that gets created and that exposes all of my javascript code as javascript is not minified, over there. 但是,当我访问我的应用程序时,几乎没有创建源文件夹,并且该文件夹暴露了我的所有JavaScript代码,因为javascript未被压缩。 what is this folder? 这个文件夹是什么? Why does this folder exists? 为什么该文件夹存在? how do I disable this folder? 如何禁用此文件夹? Link to the screenshot 链接到屏幕截图

您可能应该在gulp / build.js中禁用源映射,而且gulp-uglify使用了您可能想要更改的默认选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM