title: How can we generate static HTML files from JSP during the build process of our Maven app
body: <p>We have a fairly old Maven web app and I have been tasked with optimizing the front-end. I have found that we have hundreds of unused style rules in our CSS (Which is generated from LESS). We have begun to implement Gulp into our apps build process and I would like to implement a task that removes all unused style rules from our CSS. This should drastically reduce the size of the CSS files we serve up. The problem I have is that this task requires the CSS and HTML files. As this is a JSP app the HTML is generated when a user makes a request for that page, not during the build process. This means I don't have the static HTML files that this task needs.</p>
  
  <p>The plugin I was planning on using is:
  <a href="https://www.npmjs.com/package/gulp-uncss" rel="nofollow noreferrer">https://www.npmjs.com/package/gulp-uncss</a></p>
  
  <p>I was hoping that we could add a build step that generates static HTML files that we could then use in the Gulp task to remove the unused CSS rules, then run another Gulp task that deletes these files.</p>