JavaScript 와 css 를 minify + Ofuscate 해주는 YUI Compressor 유틸을 maven 에서 쓸 수 있게하는 플러그인

 

설정

	<pluginManagement>               
			<plugins>
				<!-- begin Core plugins -->
                 <plugin>
					<groupId>net.alchim31.maven</groupId>
  					<artifactId>yuicompressor-maven-plugin</artifactId>
  					<version>1.4.0</version>
				</plugin>
			</plugins>
	</pluginManagement>               
CODE

 

Goals

GoalDescription
yuicompressor:compressApply compression on JS and CSS (using YUI Compressor).
yuicompressor:jslintCheck JS files with jslint.

 

사용

 
CODE

 

Ref