๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’š ๊ฐœ๋ฐœ/์›น

YUI Compressor ์„ ์‚ฌ์šฉํ•˜์—ฌ .js ํŒŒ์ผ์„ .min.js ํŒŒ์ผ๋กœ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•

by devshin.kr 2021. 10. 6.
728x90


1. ์•„๋ž˜ ์‚ฌ์ดํŠธ์— ์ ‘์†ํ•œ๋‹ค.
https://yui.github.io/yuicompressor/

 

YUI Compressor

According to Yahoo!'s Exceptional Performance Team, 40% to 60% of Yahoo!'s users have an empty cache experience and about 20% of all page views are done with an empty cache (see this article by Tenni Theurer on the YUIBlog for more information on browser c

yui.github.io



2. Download ๋ฅผ ํด๋ฆญํ•˜์—ฌ ๋‹ค์šด๋กœ๋“œ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•œ๋‹ค.



3. ๋‹ค์šด๋กœ๋“œ ํŽ˜์ด์ง€์—์„œ yuicompressor-x.y.z.jar ์„ ๋‹ค์šด ๋ฐ›๋Š”๋‹ค. (x, y, z ๋Š” ๋ฒ„์ „๋ช…)
https://github.com/yui/yuicompressor/releases

 

Releases · yui/yuicompressor

YUI Compressor. Contribute to yui/yuicompressor development by creating an account on GitHub.

github.com



4. ํ…Œ์ŠคํŠธ ๊ฒฝ๋กœ ๋‚ด์— origin.js ํŒŒ์ผ์„ ์ƒ์„ฑํ–ˆ๋‹ค.



5. ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ yuicompressor-x.y.z.jar ํŒŒ์ผ์„ ๋™์ผํ•œ ๊ฒฝ๋กœ๋กœ ์˜ฎ๊ฒจ์ฃผ์—ˆ๋‹ค.



6. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•ด min.js ๋กœ ๋งŒ๋“ ๋‹ค. (https://yui.github.io/yuicompressor/)

 

(๋‚˜๋Š” java๋ฅผ ํ™˜๊ฒฝ๋ณ€์ˆ˜๋กœ ์„ค์ •ํ•ด ๋‘์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ์–ด๋Š ์œ„์น˜์—์„œ๋“  ํ˜ธ์ถœ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ํ™˜๊ฒฝ๋ณ€์ˆ˜๊ฐ€ ๋ญ”์ง€ ๋ชจ๋ฅธ๋‹ค๋ฉด ๋‹ค์Œ ๋งํฌ๋ฅผ ์ฐธ๊ณ  : MySQL ์‹œ์Šคํ…œ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ๋“ฑ๋กํ•˜๊ธฐ)

-o ์˜ต์…˜ ๋’ค์— ์ƒ์„ฑํ•  ํŒŒ์ผ์˜ ์ด๋ฆ„์ธ new.min.js ๋ฅผ ์ ์–ด ์ฃผ์—ˆ๋‹ค.


7. ์ƒ์„ฑ๋œ min.js ํŒŒ์ผ ํ™•์ธ

 

๋Œ“๊ธ€