会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jim520
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
8
下一页
2019年9月2日
npm设置代理
摘要: npm设置仓库1.npm config set registry https://registry.npm.taobao.org npm config list #查看npm当前配置 2.命令行指定 每次执行命令前加入–registry指定仓库路径npm --registry http://172.
阅读全文
posted @ 2019-09-02 19:00 jim520
阅读(4429)
评论(0)
推荐(0)
2019年8月29日
使用npm link关联自己的node modules(项目)
摘要: 在进行自己的模块开发时,一般我们至少会创建2个项目,一个项目进行自己的modules开发(项目aaa)。 另一个项目引入自己开发的modules,进行测试并使用(项目bbb)。 这时我们就可以使用npm link关联2个模块: 1:进入aaa项目,输入npm link,这时npm会把项目aaa暴露到
阅读全文
posted @ 2019-08-29 10:30 jim520
阅读(2059)
评论(0)
推荐(0)
2019年8月15日
高版本的angular cli(2以上)如何使用ng eject
摘要: 在creact react中有eject来暴露出配置文件,但是在angular cli中却只有1.X版本的cli有这个功能 https://github.com/angular/angular-cli/wiki/1-x-home 2版本以上都没有了 https://github.com/angula
阅读全文
posted @ 2019-08-15 18:05 jim520
阅读(556)
评论(0)
推荐(0)
2019年7月22日
关于redux-observable的一点理解
摘要: 推荐2篇个人觉得写的还不错的文章吧 redux-observable介绍及和redux-thunk,redux-saga的区别:https://www.jianshu.com/p/c1adaa9d8a39 使用 redux-observable 实现组件自治:https://juejin.im/po
阅读全文
posted @ 2019-07-22 22:48 jim520
阅读(1442)
评论(0)
推荐(0)
2019年7月5日
Type error: Cannot compile namespaces when the '--isolatedModules' flag is provided.
摘要: 在使用create-react 构件的TS项目时如果我们想导入一个普通的 .js文件会有以下报错 Failed to compile C:/Users/JH55692/rendition_ui/public/readership/adobe/AppMeasurement.jsType error:
阅读全文
posted @ 2019-07-05 17:16 jim520
阅读(7063)
评论(0)
推荐(0)
react-create-app src引入目录外部文件冲突问题:Relative imports outside of src/ are not supported.
摘要: 使用react-create-app构建的项目,当src文件夹下文件想引用src文件夹外文件因为官方限制问题会报以下错误。 Module not found: You attempted to import ****** which falls outside of the project src/
阅读全文
posted @ 2019-07-05 15:32 jim520
阅读(4524)
评论(0)
推荐(0)
2019年6月28日
React 的性能优化 PureComponent 与 ImmutableJS
摘要: 详见:https://segmentfault.com/a/1190000011408775
阅读全文
posted @ 2019-06-28 15:23 jim520
阅读(246)
评论(0)
推荐(0)
2019年6月23日
react服务端渲染详解
摘要: 详见1:https://www.jianshu.com/p/47c8e364d0bc?appinstall=1&mType=Group 及2:https://segmentfault.com/a/1190000018672269#articleHeader14 react官方:https://zh-
阅读全文
posted @ 2019-06-23 03:08 jim520
阅读(206)
评论(0)
推荐(0)
2019年6月17日
react event.persist()
摘要: 如果在react中想异步访问事件属性(如在setTimeout内),应该在是处理事件时调用event.persist(),这会从事件池中移除该合成函数并允许对该合成事件的引用被保留下来。 详见:https://reactjs.org/docs/events.html#event-pooling
阅读全文
posted @ 2019-06-17 18:13 jim520
阅读(11336)
评论(0)
推荐(0)
2019年6月6日
npm删除项目所有依赖和清缓存
摘要: 清缓存的办法,一个是 npm cache verify, 还有一个方法npm cache clean --force 删除项目所有依赖 npm uninstall *
阅读全文
posted @ 2019-06-06 16:56 jim520
阅读(35720)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
···
8
下一页
公告