Skip to content

Commit

Permalink
update CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpatrick1989 committed Jan 11, 2019
1 parent 575c154 commit 63c53b6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ define(['cache'], function(Cache){
})
```

### # CDN

我们推荐链接到一个你可以手动更新的指定版本号:

```javascript
<script src="https://unpkg.com/[email protected]/dist/cache.js"></script>
```
使用压缩版本,这是一个更小的构建,可以带来比开发环境下更快的速度体验。
```javascript
<script src="https://unpkg.com/[email protected]/dist/cache.min.js"></script>
```


## API
Expand Down
4 changes: 2 additions & 2 deletions dist/cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Cache.js v0.0.4
* (c) 2018-06-03 Xinyu Peng
* Cache.js v0.0.5
* (c) 2019-01-11 Xinyu Peng
*/

; (function (global, factory) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cache-lib",
"version": "0.0.4",
"version": "0.0.5",
"browser": "dist/cache.min.js",
"main": "src/cache.js",
"description": "cache.js 是一个轻量级的 JS 库,对 `localStorage`、`sessionStorage`进行了扩展,增加了序列化方法和过期时间。可以直接存取JSON对象、设置过期时间。",
Expand Down
4 changes: 2 additions & 2 deletions src/cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Cache.js v0.0.4
* (c) 2018-06-03 Xinyu Peng
* Cache.js v0.0.5
* (c) 2019-01-11 Xinyu Peng
*/

; (function (global, factory) {
Expand Down

0 comments on commit 63c53b6

Please sign in to comment.