0

In a Java/Spring/Themeleaf application, how can CSS/JS optimization be enabled in code only, without adding another component outside the platform (e.g. Apache)?

I'm talking about optimizations like this:

which is in Java but has its own syntax and not integrated with Spring MVC or Thymeleaf, besides being last updated seven years ago,

and this:

which looks great but runs on Apache. I understand I could stick an Apache server between our CDN Reverse Proxy and App Servers, but that's a whole new level of complexity and right now I'm looking for a developer-oriented solution that can be managed as part of the application code within Java / Spring / Thymeleaf.

1 Answer 1

1

You can use https://github.com/wro4j/wro4j it has both compile and runtime options to combine and minify JS and CSS resources.

It has also has option for wro4spring-thymeleaf-dialect which is not maintained anymore.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.