How to optimize the front part of the java web project?

problem description

the company has a project based on srpingmvc + jsp, and the front-end display page is the introduction of js,css to the page. Due to historical reasons, the front-end engineering is not done, and the project is not suitable for complete front-end separation. I now want to do some scaffolding things, such as adding hash code to online js, picture extraction and CDN, replacing html text, and compressing and merging js. Is there a solution to make the framework or idea of this scaffolding? I hope you have experience to give some advice.

Jun.27,2022

you can use Baidu's fis front-end building tool, which is easier to use than using gulp or webpack to write these functions. You want to add hash code to the resource file, merge and compress resources, and replace html text. These have been integrated.
fis address


go directly to webpack Bar

Menu