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