hsts 强制跳转 https

2020-08-13
阅读 2 分钟
2.7k
背景:项目开发时有两套环境, 一个是线上 https://api.demo.example.com, 另一个是测试环境 http://test-api.demo.example.com.

Nuxt.js 的一个常见错误警告

2019-02-19
阅读 2 分钟
6.1k
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.

用 next.js 做一个服务端渲染的加密货币网站

2018-02-26
阅读 7 分钟
7k
next.js 是一个基于 React 的通用 JavaScript 框架,next.js 为 React 组件模型提供了扩展,支持基于服务器的组件渲染 (SSR),同时也支持在客户端继续进行渲染。本文通过实现一个热门加密货币行情的网站来学习 next.js。

为什么我们应该使用 pnpm(译)

2018-02-08
阅读 3 分钟
11.9k
为什么更高效? 当你安装一个软件包,我们把它保存在你的机器上的一个全局存储目录中,然后我们创建一个硬链接而不是复制。 对于模块的每个版本,只会有一个副本保存在磁盘上。 例如,当使用 npm 或 yarn 时,如果有 100 个使用 lodash 的项目,你的磁盘上就会有有 100 份 lodash 的拷贝。pnpm 能帮助您节省千兆字节的磁...

npx命令介绍

2018-01-24
阅读 1 分钟
9.6k
Note: If you do not have a package.json, create one before installing. This will ensure proper interaction with the npx command.

setState的一个Synthetic Event Warning

2017-11-27
阅读 3 分钟
19k
Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property target on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist(). See [链接] for more information.

用Service Worker实现离线应用

2017-11-06
阅读 4 分钟
3.1k
开始有兴趣了解Service Worker,是因为学习react时使用create-react-app创建的应用,src下面会有一个registerServiceWorker.js文件。后来在了解PWA时也看到了它的身影。于是就打算写一篇笔记详细了解一下。

使用Docker Compose部署Django和Vue.js应用

2017-07-18
阅读 5 分钟
9.6k
本文主要内容关于使用docker-compose实践部署后端django-rest-framework和前端vue.js应用。记录其中遇到的一些坑以及解决办法。