Maven plugin for versioning and minifying javascript

前端 未结 3 897
旧时难觅i
旧时难觅i 2021-01-30 03:15

Single Page Javascript Application

I have built a sophisticated ajax-driven single page webapp that uses a RESTful backend web service serving JSON. The javascript is

相关标签:
3条回答
  • 2021-01-30 03:43

    I've successfully incorporated RequireJS optimization (uses Google Closure compiler + does concatenation) in a Maven environment (for single page JS app). See my question and the follow up answer for details: RequireJS Compilation in Maven project with external JS dependencies

    You could probably expand on that to version and archive the minified JS artifacts.

    0 讨论(0)
  • 2021-01-30 03:50

    Take a look at the yuicompressor-maven-plugin. It can aggregate various js (as well as css) files as well as minify and obfuscate them.

    0 讨论(0)
  • 2021-01-30 03:52

    Here's a brand-new Maven plugin that targets this task: http://mojo.codehaus.org/webminifier-maven-plugin/

    0 讨论(0)
提交回复
热议问题