build docs

This commit is contained in:
Harvey Zack committed 2023-04-26 10:54:26 +08:00
1 parent ddfce350ec
commit 336627cae3
81 files changed
+1673 -1615

No files matched your search

+29 -1
View File
@@ -271,4 +271,32 @@ export default {
}
}
}
```
```
## Old browsers
Production builds of `artplayer.js` are only compatible with the last major version of `Chrome`: `last 1 Chrome version`
For older browsers, use the `artplayer.legacy.js` file, compatible up to: `IE 11`
```js
import Artplayer from 'artplayer/dist/artplayer.legacy.js';
```
::: code-group
```bash [jsdelivr.net]
https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.legacy.js
```
```bash [unpkg.com]
https://unpkg.com/artplayer/dist/artplayer.legacy.js
```
:::
If you want to be compatible with older browsers, please modify the following configuration and build it yourself:
Build configuration: [/scripts/build.js](https://github.com/zhw2590582/ArtPlayer/blob/master/scripts/build.js#L29)
Reference documents: [browserslist](https://github.com/browserslist/browserslist#full-list)
+29 -1
View File
@@ -267,4 +267,32 @@ export default {
}
}
}
```
```
## 古老的浏览器
生产构建的 `artplayer.js` 只兼容最新一个主版本的 `Chrome`:`last 1 Chrome version`
对于古老的浏览器,可以使用 `artplayer.legacy.js` 文件,可以兼容到:`IE 11`
```js
import Artplayer from 'artplayer/dist/artplayer.legacy.js';
```
::: code-group
```bash [jsdelivr.net]
https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.legacy.js
```
```bash [unpkg.com]
https://unpkg.com/artplayer/dist/artplayer.legacy.js
```
:::
假如你要兼容更古老的浏览器时,请修改以下配置然后自行构建:
构建配置:[scripts/build.js](https://github.com/zhw2590582/ArtPlayer/blob/master/scripts/build.js#L29)
参考文档:[browserslist](https://github.com/browserslist/browserslist#full-list)