ÃÖ¼ÒÇÑÀÇ

CSS ¹× JavaScript Minification / ÄÞºñ³×ÀÌ¼Ç ¾÷±×·¹À̵å WebHelpers
Áö±Ý ´Ù¿î·Îµå

ÃÖ¼ÒÇÑÀÇ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Other/Proprietary Li...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Linas Juskevicius
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.idiles.com

ÃÖ¼ÒÇÑÀÇ Å±×


ÃÖ¼ÒÇÑÀÇ ¼³¸í

CSS ¹× JavaScript Minification / ÄÞºñ³×ÀÌ¼Ç ¾÷±×·¹À̵å WebHelpers. ÃÖ¼Ò´Â Production Mode¿¡¼­ ½Ç½Ã°£ JS / CSS Á¶ÇÕ ¹× MinificationÀ» »ç¿ëÇÒ ¼öÀÖ´Â WebHelpersÀÇ È®ÀåÀÔ´Ï´Ù. EASY_INSTALL : EASY_INSTALL MINIMATICATIONISING PIP : PIP ¼³Ä¡ MINIMATICSOURCE CODEMERCURIAL ÀúÀå¼Ò´Â BITBUCKET.ORG.USAGE¿¡ ÀÖ½À´Ï´Ù. WEBHELPERS ÇÔ¼ö JAVELPERS ±â´ÉÀ» È®ÀåÇÕ´Ï´Ù JavaScript_Link ¹× Stylesheet_Link´Â ¼öÁ¤ µÈ ¸Å°³ º¯¼ö ÁýÇÕÀ» °¡Á®¿É´Ï´Ù. * ¼Ò½º (¸ñ·Ï) : JS / CSS Ç׸ñÀ» ó¸®ÇÕ´Ï´Ù. °¢ Ç׸ñÀº ´ÙÀ½ Áß ÇϳªÀÔ´Ï´Ù. - (Dict) Å° : + ÆÄÀÏ : Á¤Àû ÆÄÀÏ ·çÆ® + Minify : Minification ¸Þ¼­µå¸¦ ±âÁØÀ¸·Î ¼Ò½º ÆÄÀÏÀÇ °æ·Î. °¡´ÉÇÑ °ª (±âº»°ª false) : # false (bool) : ¼Ò½ºÀÇ ¼öÁ¤µÇÁö ¾ÊÀº # ½ºÆ®¸³ (str)À» »ç¿ëÇϽʽÿÀ. Ãß°¡ °ø¹é°ú ÁÖ¼®À» ½ºÆ®¸³ (CSS¿¡¸¸ Àû¿ë °¡´É) # Minify (str) : ½ºÆ®¸³ °ø¹éÀ» ½ºÆ®¸³ °ø¹éÀ¸·Î Àû¿ëÇÏ°í ´Ù¸¥ °¡´ÉÇÑ JS / CSS Àû¿ë ³ª´©±â. ¿©±â¿¡´Â ¼Ò½º ±¸¹® ºÐ¼®ÀÌ Æ÷ÇԵǾî ÀÖÀ¸¸ç ±¸¹® ¿À·ù¿¡¼­ ¿À·ù°¡ ¹ß»ýÇÕ´Ï´Ù (CSS ÇØÅ·Àº Á¦°ÅµË´Ï´Ù!). °á°ú ÆÄÀÏÀÌ ³í¸®ÀûÀ¸·Î ´Ù¸¥ + DETT : ¼Ò½º ¸ñ·ÏÀÌ °áÇÕµÇÁö ¾ÊÀº °æ¿ì °¢ Ç׸ñÀº Á¤Àû ÆÄÀÏ ·çÆ® - (str)¿¡ ´ëÇÑ ´ë»ó ÆÄÀÏ À̸§À» Á¦°øÇؾßÇÕ´Ï´Ù. - (À§ ÂüÁ¶) : { ' ÆÄÀÏ ': (str),'minify ': false} * °áÇÕ (str) : Á¤Àû ÆÄÀÏ ·çÆ®¸¦ ±âÁØÀ¸·Î °áÇÕ µÈ ÆÄÀÏ À̸§ÀÔ´Ï´Ù. ÆÄÀÏÀ» °áÇÕÇØ¾ß ÇÔÀ» ÀǹÌÇÕ´Ï´Ù. °áÇÕ µÈ °æ¿ì ¸ðµç Ç׸ñ¿¡´Â ¸ðµç Ç׸ñÀÌ Á¦°øµÇ¾î¾ßÇÕ´Ï´Ù. * BEAKER_KWARGS (DICT) : BEAKER_CACHE·Î Àü´Þ µÉ ±âº» Àμö¸¦ ÀçÁ¤ÀÇÇÕ´Ï´Ù. beaker_kwargs.update ()´Â ±âº» Àμö·Î ¹ßÇàµË´Ï´Ù. * Timestamp Append Time.Time Browsers¿¡ ´ëÇÑ ¸µÅ©¿¡ ´ëÇÑ ¸µÅ©°¡ JS / CSS ÀÚ»êÀ» ´Ù½Ã·ÎµåÇÕ´Ï´Ù. test.js? t = 123012343 ÆÄÀÏÀÌ ÇÁ·Î´ö¼Ç ¸ðµå¿¡¼­ °áÇյ˴ϴÙ. °³¹ß ¸ðµå (debug = true)¿¡¼­´Â º°µµ·Î ¼öÁ¤µÇÁö ¾ÊÀº »óÅ·ΠÁ¦°øµË´Ï´Ù. example : ¼Ò½º¸¦ ÇϳªÀÇ Å« JS ÆÄÀÏ·Î ¹Í½ºÇÏ°í ¹Í½ºÇÏ°í ÀÏÄ¡ ½ÃÅ°½Ê½Ã¿À : >>> javascript_link (... #ÀÌ ÆÄÀÏÀº ÀÌ¹Ì È®¸³µÇ¾î ÀÖ½À´Ï´Ù. /js/jquery.js ', ...' '/js/jquery-ui-custom.js', ... # À̵éÀº ¸ÕÀú ¹ÌÀÔ µÉ ÇÊ¿ä°¡ÀÖ´Â »ç¿ëÀÚ Á¤ÀÇ ÆÄÀÏÀÔ´Ï´Ù ... dict (file = '/ js / base) .js ', minify ='minify '), ... dict (file ='/ js / page-script.js ', minify ='minify '), ... °áÇÕ ='/ °áÇÕ / js / scripts.js ', ... timestamp = true) º°µµ·Î CSS ÆÄÀÏÀ» Á¦°øÇÕ´Ï´Ù (ºñ º¹À½) : >>> styleSheet_Link (... #ÀÌ ½ºÅ¸ÀÏ ½ÃÆ®´Â À¯È¿ÇÑ CSSÀÌ¸ç ±¸¹® ºÐ¼® ¹× ¹Ì»è ... Dict (file ='/ css / base)ÀÔ´Ï´Ù. CSS ', Minify ='Minify ', ... Dest ='/ Combined / CSS / Base.css '), ... #ÀÌ ½ºÅ¸ÀÏ ½ÃÆ®´Â CSS ÇØÅ·À¸·Î °¡µæ Â÷ ÀÖÀ¸¸ç ¿©ºÐÀÇ °ø¹éÀº ... #°ú ÀÇ°ßÀº ´ÙÀ½°ú °°¾Æ¾ßÇÕ´Ï´Ù. ¹ÚÅ» µÈ ... dict (file = '/ css / styles.ie6.css', minify = 'strip', ... dest = '/ °áÇÕ / css / styles.ie6.css'), ... timestamp = true ) ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


ÃÖ¼ÒÇÑÀÇ °ü·Ã ¼ÒÇÁÆ®¿þ¾î