{"id":125819,"date":"2020-05-03T00:14:42","date_gmt":"2020-05-02T16:14:42","guid":{"rendered":"http:\/\/4563.org\/?p=125819"},"modified":"2020-05-03T00:14:42","modified_gmt":"2020-05-02T16:14:42","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e6%9f%90%e4%ba%9b%e7%94%a8-vue-js-%e5%88%9b%e5%bb%ba%e7%9a%84-web-%e5%ba%94%e7%94%a8%ef%bc%8c%e7%9b%b4%e6%8e%a5%e7%94%a8-chrome-%e7%9a%84%e6%a3%80%e6%9f%a5%e5%b7%a5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=125819","title":{"rendered":"\u4e3a\u4ec0\u4e48\u67d0\u4e9b\u7528 vue.js \u521b\u5efa\u7684 web \u5e94\u7528\uff0c\u76f4\u63a5\u7528 chrome \u7684\u68c0\u67e5\u5de5\u5177\u5c31\u80fd\u76f4\u63a5\u770b\u5230\u9879\u76ee\u6e90\u7801\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e3a\u4ec0\u4e48\u67d0\u4e9b\u7528 vue.js \u521b\u5efa\u7684 web \u5e94\u7528\uff0c\u76f4\u63a5\u7528 chrome \u7684\u68c0\u67e5\u5de5\u5177\u5c31\u80fd\u76f4\u63a5\u770b\u5230\u9879\u76ee\u6e90\u7801\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : watanuki <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e3b\u662f\u4e2a\u4e1a\u4f59\u7684\uff0c\u56e0\u4e3a\u4e00\u822c\u89c1\u5230\u7684\u90fd\u662f\u6253\u5305\u6210\u4e00\u4e2a bundle.js \uff0c\u50cf\u56fe\u4e2d\u8fd9\u79cd\u60c5\u51b5\u7684\uff0c\u8fd8\u662f\u7b2c\u4e00\u6b21\u89c1\uff0c\u8fd9\u8ba9\u6211\u4ea7\u751f\u4e86\u4e24\u4e2a\u7591\u95ee\uff1a<\/p>\n<ol>\n<li>\u8fd9\u662f\u600e\u4e48\u5b9e\u73b0\u7684\uff0c\u662f\u5bf9\u5e94 webpack \u4e2d\u7684\u67d0\u4e9b\u914d\u7f6e\u5417?<\/li>\n<li>\u4e3a\u4ec0\u4e48\u8981\u7279\u610f\u8fd9\u6837\u505a\uff1f\u8fd9\u4e0d\u662f\u628a\u9879\u76ee\u6e90\u7801\u7684\u5927\u90e8\u5206\u90fd\u66b4\u9732\u51fa\u6765\u4e86\u5417\uff1f<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/06\/20200628_5ef8df5308b3f.png\" alt=\"\u4e3a\u4ec0\u4e48\u67d0\u4e9b\u7528 vue.js \u521b\u5efa\u7684 web \u5e94\u7528\uff0c\u76f4\u63a5\u7528 chrome \u7684\u68c0\u67e5\u5de5\u5177\u5c31\u80fd\u76f4\u63a5\u770b\u5230\u9879\u76ee\u6e90\u7801\uff1f\" \/><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>31<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1997569\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BarZu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sourceMap                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997570\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : assassin1993zj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ebf\u4e0a\u73af\u5883\u4e0d\u63a8\u8350\u914d\u7f6e sourceMap \u4e3a true\uff0c\u8fd9\u6837\u4f1a\u66b4\u9732\u6e90\u4ee3\u7801\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997571\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruby109 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             dlsite \u8349                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997572\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Austaras <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u751f\u4ea7\u73af\u5883\u5efa\u8bae nosources-source-map                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997573\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : autoxbc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Web \u662f text \u4e0d\u662f binary\uff0c\u8fd9\u4e48\u8bbe\u8ba1\u5c31\u662f\u8bf4\uff0c\u4ee3\u7801\u7ed9\u4eba\u770b\u770b\u6ca1\u4ec0\u4e48\u4e86\u4e0d\u5f97\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997574\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nezumi85757 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @autoxbc \u4e5f\u8981\u770b\u6280\u672f\u53d8\u8fc1\u554a\uff0c\u6784\u601d\u4e4b\u521d\u6d4f\u89c8\u5668\u505a\u7684\u4e8b\u60c5\u8ddf\u4eca\u5929\u6d4f\u89c8\u5668\u91cc\u8dd1\u7684\u5e94\u7528\u5df2\u7ecf\u662f\u5929\u5dee\u5730\u522b\u4e86\uff0c\u5b89\u5168\u6027\u4e0a\u6765\u8bf4\u628a\u5e95\u88e4\u5168\u6f0f\u5b9e\u5728\u4e0d\u59a5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997575\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : belin520 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.ruanyifeng.com\/blog\/2013\/01\/javascript_source_map.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997576\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : autoxbc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nezumi85757 #6 \u5927\u7ad9\u524d\u7aef\u4e0d\u538b\u7f29\u4e0d\u6df7\u6dc6\u7684\u591a\u4e86\u53bb\u4e86\uff0c\u56e0\u4e3a\u8fd9\u8ddf\u5b89\u5168\u6ca1\u4ec0\u4e48\u5173\u7cfb\u3002\u4e1a\u754c\u51c6\u5219\u662f\uff1a\u6709\u79d8\u5bc6\u653e\u540e\u7aef\uff0c\u6ca1\u5bc6\u7801\u4ee3\u7801\u968f\u4fbf\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997577\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : autoxbc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @autoxbc #8 \u5bc6\u7801 -&gt; \u79d8\u5bc6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997578\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nezumi85757 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @autoxbc \u6240\u4ee5\u8bf4\u8fd8\u662f\u770b\u5f00\u53d1\u600e\u4e48\u505a\u51b3\u7b56\u554a\uff0c\u6211\u4e0d\u77e5\u9053\u4f60\u8bb0\u4e0d\u8bb0\u5f97\u8fd9\u6837\u4e00\u4ef6\u4e8b\u60c5\uff0c\u5c0f\u7c73 5 \u8fd8\u662f 6 \u7684\u65f6\u5019\u5b98\u7f51\u62a2\u624b\u673a\uff0c\u4e00\u79d2\u5c31\u5149\u4e86\uff0c\u7ed3\u679c\u88ab\u4eba\u6252\u4ee3\u7801\u4e00\u770b\uff0c\u62a2\u7684\u8fd9\u4e00\u6b65\u5728\u524d\u53f0\u5c31\u7ed9\u4f60\u6253\u56de\u4e86\uff0c\u5c31\u662f\u4e2a\u968f\u673a\u503c\uff0c\u7136\u540e\u81ea\u7136\u7684\u7528\u6237\u5c31\u53bb\u5fae\u535a\u95f9\u4e86\uff0c\u8fd9\u79cd\u60c5\u51b5\u54ea\u6015\u6df7\u6dc6\u4e00\u4e0b\uff0c\u88ab\u4eba\u53d1\u73b0\u4f5c\u5047\u7684\u51e0\u7387\u4e5f\u4f1a\u5c0f\u5f88\u591a\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997579\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chairuosen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u7aef\u6e90\u7801\u968f\u4fbf\u770b\uff0c\u4e0d\u80fd\u770b\u7684\u4ee3\u7801\u4e0d\u653e\u524d\u7aef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997580\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : catteroLo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u89c9\u8fd9\u4e0d\u662f sourcemap \u7684\u95ee\u9898\uff0c\u8fd9\u662f\u76f4\u63a5\u628a webpack-dev-server \u53cd\u4ee3\u51fa\u6765\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997581\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuweiyou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sourcemap \u4e86\u89e3\u4e00\u4e0b\uff0c\u53e6\u5916\u54ea\u6015\u6ca1\u6709 sourcemap\uff0c\u5168\u662f abcd \u61c2 JS \u7684\u4eba\u4e5f\u80fd\u5206\u6790\u4f60\u7684\u903b\u8f91\u7684\u3002\u524d\u7aef\u6ca1\u6709\u79d8\u5bc6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997582\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AlphaTr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sourcemap \u5728\u8d77\u4f5c\u7528\uff0c\u662f\u4e3a\u4e86\u65b9\u4fbf\u5f00\u53d1\u8005\u8c03\u8bd5\uff1b\u6240\u4ee5\u4e0a\u7ebf\u7684\u4ee3\u7801\u5e94\u8be5\u628a sourcemap \u53bb\u6389                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997583\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ibegyourpardon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u7aef\u6ca1\u6709\u79d8\u5bc6\u3002<\/p>\n<p>\u4f46\u662f\u6709\u6210\u672c\u3002<\/p>\n<p>\u6df7\u6dc6\u8fd8\u662f\u8981\u505a\u7684\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997584\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : miniwade514 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @catteroLo +1 \u6574\u4e2a\u76ee\u5f55\u7ed3\u6784\u5168\u90e8\u66b4\u9732\u51fa\u6765\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997585\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 9yu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u672c\u5b50\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997586\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : miniwade514 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u89c9\u5f97\u8fd9\u5c31\u662f\u4eba\u4e3a\u64cd\u4f5c\u7684\u95ee\u9898\uff0c\u8981\u4e48\u662f\u4f5c\u8005\u6ca1\u610f\u8bc6\u5230\u8fd9\u6837\u4f1a\u66b4\u9732\u6e90\u4ee3\u7801\uff0c\u8981\u4e48\u5c31\u662f\u4ed6\u6839\u672c\u4e0d\u5728\u4e4e\uff0c\u968f\u4fbf\u770b\u3002<br \/>\u4e0a\u4e00\u4e9b\u4eba\u8bf4\u7684\u5bb9\u6613\u8ba9\u4eba\u8bef\u4ee5\u4e3a\u8fd9\u662f\u5e38\u89c4\u64cd\u4f5c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997587\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : watanuki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @catteroLo #12 \u4e0d\u4f1a\u5427\uff0c\u8fd9\u662f\u4e2a\u5df2\u7ecf\u4e0a\u7ebf\u4e86\u7684\u9879\u76ee\uff0c\u600e\u4e48\u53ef\u80fd\u7528 dev-server \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997588\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DOLLOR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sourceMap \u53ef\u4ee5\u63d0\u4f9b\u6e90\u4ee3\u7801\u6620\u5c04\u3002<br \/>\u6b64\u7ad9\u53d1\u5e03\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u5fd8\u4e86\u5220\u9664 map \u6587\u4ef6\uff0c\u610f\u5916\u5730\u5bfc\u81f4\u9879\u76ee\u6e90\u4ee3\u7801\u6cc4\u6f0f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997589\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yhxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u89c1\u8fc7\u8fd9\u79cd\u64cd\u4f5c\uff0c\u8d1f\u8d23\u7684\u4eba\u4e0d\u77e5\u9053\u600e\u4e48\u90e8\u7f72<br \/>\u670d\u52a1\u5668\u4e0a\u8dd1 npm run dev\uff0c\u7136\u540e\u7528 nginx \u53cd\u4ee3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997590\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DOLLOR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @autoxbc <br \/>\u6e90\u4ee3\u7801\u6587\u4ef6\u4e0d\u5149\u6709\u4ee3\u7801\uff0c\u8fd8\u6709\u6ce8\u91ca\uff0c\u800c\u4e14\u6ce8\u91ca\u5e38\u5e38\u4f1a\u66b4\u9732\u5f88\u591a\u673a\u5bc6\u6216\u9690\u79c1\u3002\u5c31\u50cf\u4e0a\u6b21\u7684\u201c\u7a77 B vip\u201d\u4e8b\u4ef6\uff0c\u5fd8\u8bb0\u6df7\u6dc6\u4ee3\u7801\uff0c\u6ce8\u91ca\u3001\u53d8\u91cf\u540d\u7684\u4fe1\u606f\u88ab\u597d\u4e8b\u8005\u6252\u4e86\u51fa\u6765\u3002<br \/>\u81ea\u90a3\u4ee5\u540e\u6211\u5c31\u8981\u6c42\u6240\u6709\u524d\u7aef\u4ee3\u7801\u5fc5\u987b\u6df7\u6dc6\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997591\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cuzfinal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u670d\u52a1\u5668\u8dd1\u7684\u662f\u5f00\u53d1\u6a21\u5f0f\uff0cwebpack \u534f\u8bae\u8fd8\u8fde\u7740\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997592\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mutoo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e9b\u5c0f\u5f00\u53d1\u5546\u4e3a\u4e86\u65b9\u4fbf\u7ebf\u4e0a debug \u4f1a\u5728 production build \u7684\u65f6\u5019\u542f\u7528 sourcemap<br \/>https:\/\/webpack.js.org\/configuration\/devtool\/#root<\/p>\n<p>\u65b9\u4fbf\u8c03\u8bd5\u7684\u540c\u65f6\u66b4\u9732\u6e90\u7801\u3002\u4e0d\u8fc7\u5bf9\u5176\u5b83\u524d\u7aef\u6765\u8bf4\u53ef\u662f\u5927\u597d\u6d88\u606f\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4e0b\u6765\u5b66\u4e60\u3001\u5206\u6790\u3002<br \/>\u4e3a\u4e9b\u6211\u8fd8\u5199\u4e86\u4e00\u4e2a sourcemap \u89e3\u538b\u5de5\u5177<br \/>https:\/\/github.com\/mutoo\/webpack-sourcemap-unpacker                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997593\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pcwow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f00\u4e86 Sourcemap <\/p>\n<p>https:\/\/play.dlsite.com\/dist\/js\/play.bundle.js<\/p>\n<p>https:\/\/play.dlsite.com\/dist\/js\/play.bundle.js.map                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997594\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DOLLOR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u4e2a\u5e76\u4e0d\u662f\u201cwebpack \u534f\u8bae\u201d\uff0c\u800c\u662f\u5229\u7528\u201csourceURL\u201d\u6307\u4ee4\u4fee\u6539\u4e86\u6e90\u4ee3\u7801\u5728\u6d4f\u89c8\u5668\u5728\u5f00\u53d1\u8005\u5de5\u5177\u7684\u6620\u5c04\u4f4d\u7f6e\u3002<br \/>\u4f60\u53ef\u4ee5\u8bd5\u7740\u5728\u6d4f\u89c8\u5668\u63a7\u5236\u53f0\u7c98\u8d34\u4ee5\u4e0b\u4ee3\u7801\u548c\u6ce8\u91ca<br \/>&#8220;`<br \/>console.log(&#8216;see sources tab&#8217;)<br \/>\/\/@ sourceURL=myprotocol:\/\/\/my.domain.com\/myfile.js<br \/>&#8220;`<br \/>\u7136\u540e\u4f60\u4f1a\u5728\u6e90\u4ee3\u7801\u6807\u7b7e\u91cc\u53d1\u73b0\u8fd9\u6bb5\u4ee3\u7801\u88ab\u795e\u5947\u5730\u6620\u5c04\u5728 URL\u201cmyprotocol:\/\/\/my.domain.com\/myfile.js\u201d\u6587\u4ef6\u91cc\u3002<br \/>\u8fd9\u91cc\u7684\u5730\u5740\uff0c\u4f60\u53ef\u4ee5\u4efb\u610f\u6539\u7684\uff0c\u4e0d\u53d7\u8de8\u57df\u4e4b\u7c7b\u7684\u9650\u5236\uff0c\u53ea\u8981\u7b26\u5408\u89c4\u5219\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997595\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dcatfly <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u5927\u7684\u53ef\u80fd\u662f\u7528\u4e86\u811a\u624b\u67b6\u5de5\u5177 \u4f46\u662f\u5fd8\u4e86\u5220\u9664 sourcemap                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997596\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ibegyourpardon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yhxx \u4f1a\u53cd\u4ee3\u4e0d\u4f1a\u6253\u5305\u90e8\u7f72\u3002\u3002\u3002<\/p>\n<p>\u6211\u662f\u4e0d\u592a\u660e\u767d\u8fd9\u8111\u56de\u8def\u3002\u3002\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997597\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wo152 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u4e48\u662f\u4e3a\u4e86\u8d76\u4e0a\u7ebf\uff0c\u8981\u4e48\u662f\u4ee3\u7801\u6280\u672f\u95ee\u9898\uff0c\u8981\u4e48\u5176\u5b9e\u4e5f\u4e0d\u7b97\u4ec0\u4e48\u79d8\u5bc6\u4e86\u3002\u3002\u3002\u3002\u6211\u53f8\u662f\u53ea\u8981\u6ca1\u4ec0\u4e48\u79d8\u5bc6\u7684\u4e1c\u897f\u653e\u524d\u7aef\u4e0d\u6df7\u6dc6\u4e5f\u662f\u53ef\u4ee5\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997598\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cweijan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             dev-server \u53ea\u662f\u4e00\u4e2a http-server, \u8d77\u4f5c\u7528\u7684\u662f source map, \u7528\u4e00\u4e2a source map \u7684 js \u4e3e\u4f8b<br \/>http:\/\/localhost:3000\/app.js, \u90a3\u4e48\u8be5 js \u6700\u4e0b\u65b9\u4f1a\u6709\u4e00\u6761\u8fd9\u6837\u7684\u6ce8\u91ca<br \/>\/\/# sourceMappingURL=app.js.map \u6d4f\u89c8\u5668\u5219\u4f1a\u53bb\u52a0\u8f7d\u4ed6\u7684 map<br \/>http:\/\/localhost:3000\/app.js.map<br \/>\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b<br \/>{<br \/> &#8220;version&#8221;: 3,<br \/> &#8220;file&#8221;: &#8220;app.js&#8221;,<br \/> &#8220;sources&#8221;: [<br \/> &#8220;webpack:\/\/\/webpack\/bootstrap&#8221;,<br \/> &#8220;webpack:\/\/\/.\/node_modules\/@babel\/runtime-corejs2\/core-js\/array\/from.js&#8221;,<br \/> &#8220;webpack:\/\/\/.\/node_modules\/@babel\/runtime-corejs2\/core-js\/array\/is-array.js&#8221;,<br \/> &#8220;webpack:\/\/\/.\/node_modules\/@babel\/runtime-corejs2\/core-js\/get-iterator.js&#8221;,<br \/> &#8220;webpack:\/\/\/.\/node_modules\/@babel\/runtime-corejs2\/core-js\/is-iterable.js&#8221;<br \/> ],<br \/> &#8220;sourcesContent&#8221;: [],<br \/> &#8220;sourcesRoot&#8221;: &#8220;&#8221;<br \/>}<\/p>\n<p>\u524d\u7aef\u4ee3\u7801\u5373\u4f7f\u8fdb\u884c\u4e86\u6df7\u6dc6\u538b\u7f29, \u4f46 source map \u6ca1\u6709\u5173\u95ed, \u4ecd\u7136\u4f1a\u5728\u6d4f\u89c8\u5668\u8fdb\u884c\u52a0\u8f7d                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1997599\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lq0128 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9879\u76ee\u5728 build \u65f6,webpack \u4e2d\u4f1a\u6709\u4e00\u4e2a\u53eb productionSourceMap \u7684\u914d\u7f6e\u5c5e\u6027,\u8bbe\u7f6e\u6210 fasle,\u9879\u76ee\u5728\u6253\u5305\u540e\u5c31\u770b\u4e0d\u5230\u6e90\u7801\u76ee\u5f55\u7ed3\u6784                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u67d0\u4e9b\u7528 vue.js \u521b\u5efa\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/125819"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125819"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/125819\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125819"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}