0.1.0 • Published 3 months ago
cms-vue-editor v0.1.0
cms-vue-editor
node版本18.12.0
Project setup
yarn install
Compiles and hot-reloads for development
yarn serve
Compiles and minifies for production
yarn build
Lints and fixes files
yarn lint
Customize configuration
tips:如果发现语言包版本不对,请在原项目加上语言包,或者在本项目加上多语言出口
修改vue-json-schema-form源码注意事项
- 需要安装patch-package
- 修改源码时注意依赖修改,去改vue-json-schema-form时去github上找到1.9.1版本的源码,https://github.com/lljj-x/vue-json-schema-form/releases,将vue2-form-element项目单独提取出来到其他目录,安装patch-package,有修改就npx patch-package xxxx
- 修改之后记得对vue-json-schema-form进行打包 npm run build,打包失败时,有关eslint配置,是上一级目录影响,将vue2-form-element项目单独提取出来,就能打包成功
- 对于打包样式失效,原因暂时没有深究,但是有解决方案,沿用之前dist内的css_248z样式,\n存在的打包不对,项目需要min.js文件,用此链接 https://www.toptal.com/developers/javascript-minifier生成复制进项目的min.js文件
- 修改完成之后记得patch-package
特别注意两点, 1. vue-json-schema-form patch版本是1.9.1不能修改,删除@lljj重新执行npm install能够patch成功 2. patch文件不允许删除
搬迁的时候注意复制包文件,分别npx patch-package xxxx之后;添加自动同步命令"postinstall": "patch-package", 再npm install即可全员同步
0.1.0
3 months ago