• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Updates when using YUI Compressor with Maven

 
Anant K Agarwal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I am using YUI Compressor to compress Javascript & CSS files. The files that get generated have a suffix "-min" added to it.
We have an option to disable them. The YUI Compressor is used as part of the Maven build process.

All of my JSP's have a link to "un-minified" versions of JS & CSS files. Now when the minified files are generated, how do I update
all my JSP's to link to the new files. I don't want to remove the "-min" option.

Thanks in advance,
Anant
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can edit every single JSP to reference the minified files.

Why don't you want to use the option to not add the -min suffix? The YUI Compressor plugin should be copying the JS and CSS files from the src to the target directory, so there will be no problem between telling apart the original files and the minified files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic