resource-preloader 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,15 +1,16 @@
1
1
  ## 资源加载器
2
2
 
3
- > 为了在vue项目中,预加载某些资源,开发此加载器
3
+ > 项目初衷: 为了在vue项目中,预加载某些资源,开发此加载器
4
4
  >
5
- > 在需要动态使用字体图标时,需要加载某全部的字体图标库。
5
+ > 需要动态使用字体图标时,需要加载某全部的字体图标库,然后将图标库类名存储到后端,显示时读取类名并设置实现动态图标。
6
6
  >
7
7
  > 加载时,想要先从CDN加载,如果失败,才从本地加载。
8
8
 
9
9
 
10
10
  ```js
11
11
  /** 加载器说明 **/
12
- // 预制了 css js 加载器
12
+ // 预制了 css js img json 加载器
13
+ // 结果类型:`Array<ResourceLoadResult>`
13
14
 
14
15
  /** 加载配置说明 **/
15
16
  const config = [