如何在jHipster 4中添加自定义js和CSS文件 [英] How to add custom js and css files in jHipster 4

查看:84
本文介绍了如何在jHipster 4中添加自定义js和CSS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我不熟悉webpack,因此在使用jhipster 4时遇到一些困难.我想在jHipster中添加一些应用程序级别的js和css文件.有人可以建议如何做吗.

As I'm not familiar with webpack, so I am facing some difficulties while working with jhipster 4. I want to add some application level js and css files in jHipster. Can someone suggest how to do that.

推荐答案

我们在实施 primeng 时了解到a>将其添加到src/main/webapp/content/scss/vendor.scss中,例如:

We learned while implementing primeng to add it in the src/main/webapp/content/scss/vendor.scss for example:

@import '~primeng/resources/primeng.min.css';
@import '~primeng/resources/themes/bootstrap/theme.css';

我们在创建jhipster应用程序时添加了scss选项

We added the scss option when creating the jhipster app

这篇关于如何在jHipster 4中添加自定义js和CSS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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