{"id":2443,"date":"2018-01-24T16:56:56","date_gmt":"2018-01-24T08:56:56","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2443"},"modified":"2018-01-24T16:56:56","modified_gmt":"2018-01-24T08:56:56","slug":"jarvis-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2443","title":{"rendered":"jarvis \u6559\u7a0b"},"content":{"rendered":"<p>\n\tjarvis \u662f\u4e00\u4e2a\u975e\u5e38\u667a\u80fd\u7684\u57fa\u4e8e\u6d4f\u89c8\u5668\u7684Webpack\u4eea\u8868\u677f\u3002\u5728 github \u4e0a\u5b83\u62e5\u6709 3000 \u591a\u4e2a star\u3002\n<\/p>\n<p>\n\tJARVIS\uff08\u53ea\u662f\u4e00\u4e2a\u975e\u5e38\u667a\u80fd\u7684\u7cfb\u7edf\uff09\u5c06\u4ece\u60a8\u7684webpack\u6784\u5efa\u4e2d\uff0c\u65e0\u8bba\u662f\u5728\u5f00\u53d1\u6216\u751f\u4ea7\u4e2d\uff0c\u5c06\u60a8\u7684\u6d4f\u89c8\u5668\u7684\u6240\u6709\u76f8\u5173\u4fe1\u606f\u3002\n<\/p>\n<p>\n\t\u8bb8\u591a\u529f\u80fd\u90fd\u5728\u8def\u7ebf\u56fe\u4e0a\uff0c\u4f46\u662f\uff0c\u8fd9\u4e2abeta\u7248\u672c\u5c06\u4f1a\u6539\u8fdb\u60a8\u5bf9webpack-dev-server\u6216webpack\u751f\u4ea7\u6784\u5efa\u5305\uff0c\u5757\u548c\u5176\u4ed6\u8f93\u51fa\u8d44\u4ea7\u7684\u770b\u6cd5\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"jarvis\" src=\"https:\/\/raw.githubusercontent.com\/zouhir\/jarvis\/master\/.github\/readme-logo.png\" style=\"width: 577px;height: 369px\" \/>\n<\/p>\n<p>\n\tjarvis \u5b83\u53d7\u5230\u5176\u4ed6webpack\u4eea\u8868\u677f\u7684\u5de8\u5927\u542f\u53d1\uff0c\u6838\u5fc3\u601d\u60f3\u4e0d\u662f\u539f\u521b\u7684\uff0c\u4f46\u662f\u8fd9\u91cc\u6709\u4e00\u4e9b\u7279\u70b9\uff1a\n<\/p>\n<h2>\n\t\u539f\u59cb\u7279\u5f81<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t\u663e\u793aES Harmony\u6a21\u5757\u5bfc\u5165\u7684\u6570\u91cf\uff0c\u53ef\u4ee5\u662ftreehakable\uff0cCJS\u662f\u4e0d\u53ef\u4ee5\u7684\u3002\n\t<\/li>\n<li>\n\t\t\u663e\u793a\u60a8\u7684\u8d44\u4ea7\u572812\u79cd\u4e0d\u540c\u7684\u8fde\u63a5\u7c7b\u578b\u4e2d\u7684\u8868\u73b0\u5982\u4f55\u3002\n\t<\/li>\n<\/ul>\n<h2>\n\t\u5176\u4ed6\u7279\u70b9<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\u3002\n\t<\/li>\n<li>\n\t\t\u7f8e\u5316\u9519\u8bef\u8f93\u51fa\u3002\n\t<\/li>\n<li>\n\t\t\u7b80\u5355\u7684\u65b9\u6cd5\u627e\u51fa\u603b\u8d44\u4ea7\u5927\u5c0f\u548c\u4e2a\u522b\u6346\u7ed1\u548c\u5757\u3002\n\t<\/li>\n<li>\n\t\t\u975e\u5e38\u6f02\u4eae\n\t<\/li>\n<\/ul>\n<p>\n\t\u6280\u672f\u5806\u6808\n<\/p>\n<ul>\n<li>\n\t\tPreact with Sass pre-processor.&nbsp;\u51c6\u5907\u597dSass\u9884\u5904\u7406\u5668&nbsp;\n\t<\/li>\n<li>\n\t\tSocket IO.&nbsp;\u5957\u63a5\u5b57IO\n\t<\/li>\n<li>\n\t\tExpress Server.&nbsp;Express\u670d\u52a1\u5668\n\t<\/li>\n<\/ul>\n<h2>\n\t<img decoding=\"async\" alt=\"jarvis\" src=\"https:\/\/raw.githubusercontent.com\/zouhir\/jarvis\/master\/.github\/screenshot.png\" style=\"width: 2037px;height: 1398px\" \/>\u5b89\u88c5<br \/>\n<\/h2>\n<pre class=\"brush:bash;\">\r\n$ npm i -D webpack-jarvis<\/pre>\n<p>\n\t\u5728\u4f60\u7684webpack\u914d\u7f6e\u6587\u4ef6\u4e2d\uff1a\n<\/p>\n<pre class=\"brush:jscript;\">\r\nconst Jarvis = require(&#039;webpack-jarvis&#039;);\r\n\/* the rest of your webpack configs \u4e1a\u4f59\u8349\uff1awww.xttblog.com*\/\r\nplugins: [\r\n    new Jarvis({\r\n      port: 1337 \/\/ optional: set a port\r\n    })\r\n]<\/pre>\n<p>\n\t\u5728\u4f60\u7684\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u5373\u53ef\u8bbf\u95ee\u3002\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/github.com\/zouhir\/jarvis\" name=\"jarvis\" target=\"_blank\" title=\"jarvis\">https:\/\/github.com\/zouhir\/jarvis<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2443\">jarvis \u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>jarvis \u662f\u4e00\u4e2a\u975e\u5e38\u667a\u80fd\u7684\u57fa\u4e8e\u6d4f\u89c8\u5668\u7684Webpack\u4eea\u8868\u677f\u3002\u5728 github \u4e0a\u5b83\u62e5\u6709 3000 \u591a\u4e2a s [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1437,1106,1564,663],"class_list":["post-2443","post","type-post","status-publish","format-standard","hentry","category-html5","tag-github","tag-javascript","tag-webpack"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2443"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2443\/revisions"}],"predecessor-version":[{"id":2444,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2443\/revisions\/2444"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}