(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{555:function(t,a,s){t.exports=s.p+"assets/img/catalog-show2.d98dfd53.png"},605:function(t,a,s){"use strict";s.r(a);var n=s(12),e=Object(n.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"解决其他项目引用后打包内存溢出问题"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#解决其他项目引用后打包内存溢出问题"}},[t._v("#")]),t._v(" 解决其他项目引用后打包内存溢出问题")]),t._v(" "),a("p",[t._v("为了解决内存溢出的问题，需要重新按以下方式引用webclient-vue-ui包。")]),t._v(" "),a("h2",{attrs:{id:"步骤1-安装"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#步骤1-安装"}},[t._v("#")]),t._v(" 步骤1 安装")]),t._v(" "),a("p",[t._v("使用 npm 或 yarn 安装 #\n我们推荐使用 npm 或 yarn 的方式进行开发，不仅可在开发环境轻松调试，也可放心地在生产环境打包部署使用，享受整个生态圈和工具链带来的诸多好处。")]),t._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[t._v("cd")]),t._v(" /云门户项目路径下\n\n"),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" @mapgis/webclient-vue-ui "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[t._v("--save")]),t._v("\n\n或\n\n"),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("yarn")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),t._v(" @mapgis/webclient-vue-ui\n")])])]),a("p",[t._v("如果你的网络环境不佳，推荐使用 "),a("a",{attrs:{href:"https://github.com/cnpm/cnpm",target:"_blank",rel:"noopener noreferrer"}},[t._v("cnpm"),a("OutboundLink")],1),t._v("。")]),t._v(" "),a("h2",{attrs:{id:"步骤2-替换包"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#步骤2-替换包"}},[t._v("#")]),t._v(" 步骤2 替换包")]),t._v(" "),a("p",[t._v("将我们提供的最新部署包，解压后替换到对应目录的dist包（路径："),a("strong",[t._v("其他项目/node_modules/@mapgis/webclient-vue-ui/dist-libs")]),t._v("）")]),t._v(" "),a("p",[t._v("如图所示：")]),t._v(" "),a("img",{attrs:{alt:"目录示例",src:s(555),width:"40%"}}),t._v(" "),a("h2",{attrs:{id:"步骤3-验证"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#步骤3-验证"}},[t._v("#")]),t._v(" 步骤3 验证")]),t._v(" "),a("h3",{attrs:{id:"_1-运行项目-测试组件是否正常"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-运行项目-测试组件是否正常"}},[t._v("#")]),t._v(" 1. 运行项目，测试组件是否正常")]),t._v(" "),a("h3",{attrs:{id:"_2-打包项目并测试"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-打包项目并测试"}},[t._v("#")]),t._v(" 2. 打包项目并测试")])])}),[],!1,null,null,null);a.default=e.exports}}]);