mirror of
https://github.com/OpenListTeam/OpenList-Frontend.git
synced 2026-03-15 03:20:25 +00:00
* Add `useCDN` hook for better management of CDN resources. * Bundle CDN resources (Monaco Editor, KaTeX, Mermaid, Ruffle, etc.) using `vite-plugin-static-copy` into the dist, which can be beneficial for environments with network problems. * Add `VITE_LITE` environment for conditional lite version compilation, removing the need for a separate lite branch. BREAKING CHANGE: The lite branch is no longer needed.
39 lines
1.7 KiB
Markdown
39 lines
1.7 KiB
Markdown
# OpenList (frontend)
|
|
|
|

|
|
[](./package.json)
|
|
[](https://www.npmjs.com/package/@openlist-frontend/openlist-frontend)
|
|
[](https://www.npmjs.com/package/@openlist-frontend/openlist-frontend)
|
|
[](https://www.npmjs.com/package/@openlist-frontend/openlist-frontend)
|
|
|
|
## BUILD
|
|
|
|
You can use [the build script](./build.sh).
|
|
|
|
```plaintext
|
|
Usage: ./build.sh [--dev|--release] [--compress|--no-compress] [--enforce-tag] [--skip-i18n] [--lite]
|
|
|
|
Options (will overwrite environment setting):
|
|
--dev Build development version
|
|
--release Build release version (will check if git tag match package.json version)
|
|
--compress Create compressed archive
|
|
--no-compress Skip compression
|
|
--enforce-tag Force git tag requirement for both dev and release builds
|
|
--skip-i18n Skip i18n build step
|
|
--lite Build lite version
|
|
|
|
Environment variables:
|
|
OPENLIST_FRONTEND_BUILD_MODE=dev|release (default: dev)
|
|
OPENLIST_FRONTEND_BUILD_COMPRESS=true|false (default: false)
|
|
OPENLIST_FRONTEND_BUILD_ENFORCE_TAG=true|false (default: false)
|
|
OPENLIST_FRONTEND_BUILD_SKIP_I18N=true|false (default: false)
|
|
```
|
|
|
|
## LICENSE
|
|
|
|
MIT
|
|
|
|
## CREDITS
|
|
|
|
[OpenList](https://github.com/OpenListTeam/OpenList) is a resilient, community-driven fork of [AList](https://github.com/AlistGo/alist) — built to defend open source against trust-based attacks.
|