Comments (4)
@csdoker
其实不用这么麻烦,基于vue-cli的配置稍微修改下就行了,我最近也在折腾按需引入的配置,可以参考下我的项目~https://github.com/csdoker/vimi-ui
感谢提供参考意见,我以后会抽空再研究一下
from blog.xiangfa.org.
直接引入私有库当做组件库觉得怎么样
npm i git+ssh://组件库地址 -S
一是项目中引用后可能需要修改调整组件的问题 二是降低了全员开发组件修改组件的门槛 三私密性也有保证不需要发布到npm上
from blog.xiangfa.org.
直接引入私有库当做组件库觉得怎么样
npm i git+ssh://组件库地址 -S
一是项目中引用后可能需要修改调整组件的问题 二是降低了全员开发组件修改组件的门槛 三私密性也有保证不需要发布到npm上
在我目前公司内部有在使用你说的这种方式,但这种方式也存在一些弊端,比如每次更新组件后,你需要手动更新一下依赖,否则项目里的依然可能使用的的 package-lock 或 yarn.lock 里的文件。如果你比较担心第三个问题,你可以考虑搭建 npm 私仓
from blog.xiangfa.org.
直接引入私有库当做组件库觉得怎么样
npm i git+ssh://组件库地址 -S
一是项目中引用后可能需要修改调整组件的问题 二是降低了全员开发组件修改组件的门槛 三私密性也有保证不需要发布到npm上在我目前公司内部有在使用你说的这种方式,但这种方式也存在一些弊端,比如每次更新组件后,你需要手动更新一下依赖,否则项目里的依然可能使用的的 package-lock 或 yarn.lock 里的文件。如果你比较担心第三个问题,你可以考虑搭建 npm 私仓
你说的对,同样私有包安全风险也不能忽视Researcher hacks over 35 tech firms in novel supply chain attack
from blog.xiangfa.org.
Related Issues (20)
- Vue 组件库构建流程 | 梦翼坊
- React Hooks 时代的状态管理库的选择 | 梦翼坊 HOT 6
- Electron 学习笔记 - TypeScript 的使用 | 梦翼坊
- Electron 学习笔记 - 使用 Bridge 通信模式解耦 Electron 逻辑 | 梦翼坊 HOT 4
- 使用代理映射解决微信页面调试难题 | 梦翼坊
- 优化 vue 项目包大小,提升首屏加载速度 | 梦翼坊
- 给你的 npm 提提速——优化国内 npm 下载速度 | 梦翼坊
- 优化 vue 项目包大小对比实验结果 | 梦翼坊
- 利用 Node.js 中间层进行高效的敏捷开发思考 | 梦翼坊
- 让 Hexo 支持 LaTeX 公式 | 梦翼坊 HOT 5
- 算法复杂度 | 梦翼坊
- 算法学习笔记——数字与字符串处理 | 梦翼坊
- Markdown 语法简明指南 | 梦翼坊
- 算法学习笔记 — 数学领域 | 梦翼坊
- 前端开发人员学习路线 | 梦翼坊
- vue 项目极限优化,提升首屏访问体验 | 梦翼坊
- Vue 中的 AST 与虚拟 Dom | 梦翼坊
- qiankun 微前端方案适配 HashRouter 模式及 TypeScript 项目 | 梦翼坊
- Mac 下配置 Aria2 | 梦翼坊 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.xiangfa.org.