ü\Óü¿Æ¼¼Íø

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
mito
²é¿´: 1559|»Ø¸´: 8

Webpack + Reactȫջ¹¤³Ì¼Ü¹¹ÏîĿʵս¾«½²

[¸´ÖÆÁ´½Ó]

8Íò

Ö÷Ìâ

608

»ØÌû

27Íò

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
275170
QQ
·¢±íÓÚ 2018-6-4 10:28:54 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
Webpack + Reactȫջ¹¤³Ì¼Ü¹¹ÏîĿʵս¾«½²
×îÐÂWebpack + Reactȫջ¹¤³Ì¼Ü¹¹ÏîĿʵս¾«½²ÊÓÆµ½Ì³ÌÏÂÔØ
´î½¨ÍêÕûǰ¶Ë¹¤³Ì£¬Ç°¶Ë¹¤³ÌʦÏò¼Ü¹¹Ê¦µÄ½ø½×Ö®Õ½

µÚ1Õ ¿Î³Ì½éÉÜ
ÎÒÃÇÖ÷Òª¶ÔÊÐÃæÉϲ»Í¬µÄǰ¶ËÏîÄ¿ÀàÐͽøÐÐÒ»¸ö¼òµ¥½éÉÜ£¬²¢Í¬Ê±½éÉܲ»Í¬ÀàÐ͵ÄÊʺÏÔõôÑùµÄ¼¼ÊõÑ¡ÐÍ¡£²¢ÇÒÎÒÃǶÔÏÖÔÚÖ÷Á÷µÄһЩǰ¶Ë¼¼ÊõÖðÒ»½øÐмòµ¥½éÉÜ£¬½²½âÆäÌØµãÒÔ¼°ÊʺϽâ¾öʲôÀàÐ͵ÄÎÊÌ⣬ϣÍûͬѧÃÇÄÜÔÚÕâÕÂÀïÃæ¶ÔÊÐÃæÉϵÄÖ÷Á÷ǰ¶ËÓÐÒ»¸ö´óÖµÄÁ˽⣬ÄܰïÖúÄã½ñºóÓöµ½²»Í¬µÄÀàÐ͵ÄÏîĿʱÅжϼ¼ÊõÑ¡ÐÍ¡£...

µÚ2Õ ¹¤³Ì¼Ü¹¹
ÎÒÃÇÕýʽ¿ªÊ¼´ÓÁ㿪ʼ´î½¨webappÏîÄ¿¡£Ê×ÏȽ¨Á¢×î»ù´¡µÄwebpackÅäÖã¬nodejs·þÎñ£¬webpack-dev-serverµÄÅäÖã¬ÒÔ¼°»ù´¡µÄ·þÎñ¶ËäÖȾÅäÖá£×îÖØÒªµÄÊÇÎÒÃÇÅäºÏwebpack£¬ÔÚ¿ª·¢Ê±ÓÃЧÂÊ×î¸ßµÄ·½Ê½Äõ½·þÎñ¶ËäÖȾµÄbundle£¬²¢¿ÉÒÔ·½±ãµØÔÚ¿ª·¢Ê±µ÷ÊÔ·þÎñ¶ËäÖȾµÄ´úÂë¡£...; y) ] {% O% M( {1 ]  G( T# C0 d2 f- n

µÚ3Õ ÏîÄ¿¼Ü¹¹
ÎÒÃÇ¿ªÊ¼½øÐÐÏîÄ¿ÅäÖᣴÓReactµÄ»ù±¾£¬React-RouterºÍMobxµÄstore£¬²¢Íê³ÉÒ»¸ö¼òµ¥µÄǰ¶ËDemo¡£ÔÚ½øÐÐÍêÕâЩǰ¶ËÅäÖÃÖ®ºó£¬ÎÒÃÇÁªºÏ·þÎñ¶ËäÖȾ£¬ÔÚ·þÎñ¶ËÒ²¼ÓÈë·ÓÉÌø×ªºÍÊý¾Ý»ñÈ¡µÄ¹¦ÄÜ£¬´ïµ½»ù´¡µÄǰºó¶Ëͬ¹¹¡£Í¬Ê±ÎÒÃÇ»¹ÒªÁªµ÷CnodejsµÄ¿ª·ÅAPI£¬ÈÃÎÒÃǵÄÓ¦ÓÿÉÒÔ·ÃÎʵ½Êý¾Ý¡£...4 [2 ^3 Q+ P! o, o  E5 [6  `
µÚ4Õ ҵÎñ¿ª·¢:
´ÓÕâÀ↑ʼÎÒÃǾͽøÈëÒµÎñ¿ª·¢µÄ»·½Ú¡£Ê×ÏÈÎÒÃÇҪʹÓÃMaterial-ui×é¼þ¿â£¬ÎÒÃÇÒªÅäÖÃ×é¼þ¿âµÄ·þÎñ¶ËäÖȾ£¬²¢Õ¹Ê¾×é¼þ¿âµÄ»ù±¾Ê¹Ó÷½·¨¡£È»ºóÎÒÃǽøÐÐÖ÷ÒªµÄÒµÎñ¿ª·¢£¬°üÀ¨»°ÌâÁÐ±í¡¢»°ÌâÏêÇé¡¢µÇ¼¡¢Óû§ÏêÇé¡¢»°Ìâ·¢²¼µÈ¹¦ÄÜ¡£×îºóÎÒÃÇÉý¼¶·þÎñ¶ËäÖȾ£¬ÈÃÓû§µÄµÇ¼״̬¿ÉÒÔÒ»Ö±±£³Ö¡£...

µÚ5Õ ÏîÄ¿±àÒë´ò°üÉÏÏß
Ö÷Òª½²ÊöÕýʽ»·¾³µÄ´úÂë´ò°üºÍ²¿Êð¡£ÎÒÃÇ×î´óÏ޶ȵÃÓÅ»¯´úÂë´ò°ü£¬ÈÃÎÒÃÇÄÜ×î´óÏ޶ȵÃÀûÓÃä¯ÀÀÆ÷»º´æ¼Ó¿ìÓû§·ÃÎÊËÙ¶È¡£Æä´ÎÎÒÃǽ«´ò°üÍê³ÉµÄ´úÂëÉÏ´«µ½ÆßÅ£CDN£¬¼Ó¿ì¾²Ì¬×ÊÔ´µÄ¼ÓÔØËÙ¶È£¬²¢ÇÒÕâ¸öÉÏ´«¹ý³ÌÒ²×öµ½×Ô¶¯»¯¡£×îºóÎÒÃÇÀûÓÃnginxºÍpm2ÔÚ·þÎñÆ÷Éϲ¿ÊðÎÒÃǵÄÏîÄ¿£¬ÈÃÍâÍøÓû§¿ÉÒÔ·ÃÎÊÎÒÃǵÄÍøÕ¾¡£²¢ÇÒÎÒÃǼÓÈëÁËÒ»

µÚ6Õ ¿Î³Ì×ܽá
¶Ô¿Î³Ì½øÐÐÕûÌåµÄ»Ø¹ËÓë×ܽá- X.

Óοͣ¬Èç¹ûÄúÒª²é¿´±¾ÌûÒþ²ØÄÚÈÝÇë»Ø¸´




¸ü¶àÌû×ÓÍÆ¼ö

»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

1438

»ØÌû

3410

»ý·Ö

ÂÛ̳ԪÀÏ

Rank: 6Rank: 6

»ý·Ö
3410
QQ
·¢±íÓÚ 2018-6-4 16:38:30 | ÏÔʾȫ²¿Â¥²ã
0000000000000000000001023
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

2Íò

»ØÌû

4Íò

»ý·Ö

½ûÖ¹·ÃÎÊ

»ý·Ö
41607
·¢±íÓÚ 2021-10-19 14:14:57 | ÏÔʾȫ²¿Â¥²ã
Ìáʾ: ×÷Õß±»½ûÖ¹»òɾ³ý ÄÚÈÝ×Ô¶¯ÆÁ±Î
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

QQ|Archiver|ÊÖ»ú°æ|ü\Óü¿Æ¼¼Íø

GMT+8, 2025-11-30 16:35 , Processed in 0.203389 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí