{"id":127634,"date":"2020-06-15T07:18:20","date_gmt":"2020-06-14T23:18:20","guid":{"rendered":"http:\/\/4563.org\/?p=127634"},"modified":"2020-06-15T07:18:20","modified_gmt":"2020-06-14T23:18:20","slug":"vue-cli-%e5%bd%93%e5%ad%98%e5%9c%a8%e5%90%8c%e5%90%8d%e6%96%87%e4%bb%b6%e6%97%b6%e4%b8%8d%e7%9f%a5%e9%81%93%e8%af%a5%e5%a6%82%e4%bd%95-debug","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=127634","title":{"rendered":"vue cli.\u5f53\u5b58\u5728\u540c\u540d\u6587\u4ef6\u65f6\u4e0d\u77e5\u9053\u8be5\u5982\u4f55 debug"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  vue cli.\u5f53\u5b58\u5728\u540c\u540d\u6587\u4ef6\u65f6\u4e0d\u77e5\u9053\u8be5\u5982\u4f55 debug               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beilo <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4f8b\u5982\u6709 2 \u4e2a\u6587\u4ef6,\u6587\u4ef6\u76ee\u5f55\u5206\u522b\u4e3a<\/p>\n<p>\/a\/detail<\/p>\n<p>\/b\/detail<\/p>\n<p>\u7136\u800c debug \u7684\u65f6\u5019\u53d1\u73b0<code>chrome\/webpack<\/code>\u53ea\u6709\u4e00\u4e2a<code>detail.vue<\/code>\u6587\u4ef6. \u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u670b\u53cb\u77e5\u9053\u8fd9\u79cd\u60c5\u51b5\u8be5\u600e\u4e48\u529e<\/p>\n<p>\u9884\u671f\u6548\u679c: \u80fd\u591f\u533a\u5206\u662f\u54ea\u4e2a\u6587\u4ef6<\/p>\n<p>\u73b0\u9636\u6bb5\u6211\u7684\u5904\u7406\u529e\u6cd5: \u66f4\u6539\u6587\u4ef6\u540d\u5206\u522b\u4e3a<code>ADetail.vue<\/code>\u548c<code>BDetail.vue<\/code><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2185122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ujued <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             abc.com<br \/>abc.ml<br \/>abc.run<br \/>abc.qq<br \/>abc.pub<br \/>abc.moe<br \/>abc.ink<br \/>abc.net<\/p>\n<p>Testing . Thank you                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2185123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : doommm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u81ea\u5df1\u662f\u5728 vue.config.js \u6587\u4ef6\u91cc\u9762\u914d\u7f6e devtool\uff0c\u6539\u6210 eval-source-map\uff0c\u4e0d\u77e5\u9053\u80fd\u4e0d\u80fd\u89e3\u51b3\u4f60\u7684\u95ee\u9898<\/p>\n<p>\u53c2\u8003 issue: https:\/\/github.com\/vuejs\/vue-cli\/issues\/2978 , https:\/\/github.com\/vuejs\/vue-cli\/issues\/4535                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2185124\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : beilo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @doommm \u8c22\u8c22.\u8fd9\u4e2a\u5f88\u5b8c\u7f8e\u7684\u89e3\u51b3\u95ee\u9898.<\/p>\n<p>\u6211\u73b0\u5728\u662f\u5728 vue.config.js \u91cc\u9762\u914d\u7f6e\u4e86\u5982\u4e0b\u4ee3\u7801<\/p>\n<p>&#8220;`<br \/>chainWebpack: (config) =&gt; {<br \/> \/\/ https:\/\/github.com\/vuejs-templates\/webpack\/issues\/1258<br \/> config.when(<br \/> isProduction,<br \/> () =&gt; config.devtool(&#8220;cheap-module-eval-source-map&#8221;),<br \/> () =&gt; config.devtool(&#8220;eval-source-map&#8221;)<br \/> );<br \/> },<br \/>&#8220;`<\/p>\n<p>[\u53c2\u8003\u94fe\u63a5]( https:\/\/github.com\/vuejs-templates\/webpack\/issues\/1258)                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2185125\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xzh654321 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f88\u7b80\u5355\uff0c\u60f3\u8c03\u54ea\u4e00\u4e2a\u5c31\u5728\u54ea\u4e00\u4e2a\u91cc\u9762 console.log \u4e00\u4e0b\uff0c\u53e6\u5916\u6700\u597d\u8fd8\u662f\u4e0d\u8981\u540c\u540d\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2185126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Reol <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @doommm \u89e3\u51b3\u4e86 \u591a\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>vue cli.\u5f53\u5b58\u5728\u540c\u540d\u6587\u4ef6\u65f6\u4e0d&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\/127634"}],"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=127634"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/127634\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127634"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}