문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
web:yuicompressor [2014/08/25 15:00] kwon37xi |
web:yuicompressor [2014/08/25 18:35] (현재) kwon37xi [CSS Compress] |
||
---|---|---|---|
줄 6: | 줄 6: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== CSS Compress ===== | ||
+ | '' | ||
+ | <code java> | ||
+ | // in 은 Reader 객체 | ||
+ | CssCompressor compressor = new CssCompressor(in); | ||
+ | |||
+ | // Close the input stream first, and then open the output stream, | ||
+ | // in case the output file should override the input file. | ||
+ | in.close(); in = null; | ||
+ | |||
+ | if (outputFilename == null) { | ||
+ | out = new OutputStreamWriter(System.out, | ||
+ | } else { | ||
+ | out = new OutputStreamWriter(new FileOutputStream(outputFilename), | ||
+ | } | ||
+ | |||
+ | // linebreakpos는 기본값이 -1 이다. 대부분 -1로 두면 될 듯. | ||
+ | compressor.compress(out, | ||
+ | </ | ||
+ | * linebreakpos 값 | ||
+ | * '' | ||
+ | * '' |