|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- # Nuxt Minimal Starter
-
- Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
-
- ## Setup
-
- Make sure to install dependencies:
-
- ```bash
- # npm
- npm install
-
- # pnpm
- pnpm install
-
- # yarn
- yarn install
-
- # bun
- bun install
- ```
-
- ## Development Server
-
- Start the development server on `http://localhost:3000`:
-
- ```bash
- # npm
- npm run dev
-
- # pnpm
- pnpm dev
-
- # yarn
- yarn dev
-
- # bun
- bun run dev
- ```
-
- ## Production
-
- Build the application for production:
-
- ```bash
- # npm
- npm run build
-
- # pnpm
- pnpm build
-
- # yarn
- yarn build
-
- # bun
- bun run build
- ```
-
- Locally preview production build:
-
- ```bash
- # npm
- npm run preview
-
- # pnpm
- pnpm preview
-
- # yarn
- yarn preview
-
- # bun
- bun run preview
- ```
-
- Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
-
- ## 字体本地化指南
-
- 本项目使用了以下Google字体,并已进行本地化以提高性能和兼容性:
-
- - Roboto
- - M PLUS 1p
-
- ### 如何更新字体文件
-
- 1. 下载字体文件:
- - 访问 https://fonts.google.com/ 搜索并下载需要的字体
- - 或直接使用这些链接:
- - Roboto: https://fonts.google.com/download?family=Roboto
- - M PLUS 1p: https://fonts.google.com/download?family=M+PLUS+1p
-
- 2. 转换为WOFF2格式
- - 使用在线转换工具如 https://transfonter.org/ 或 https://cloudconvert.com/ttf-to-woff2
- - 或使用字体工具如 `fonttools`:`pip install fonttools brotli` 然后运行 `python -m fontTools.ttLib.woff2 compress 字体文件.ttf -o 字体文件.woff2`
-
- 3. 放置文件
- - 将转换后的WOFF2文件放入对应的 `public/fonts/[字体名称]` 目录中
-
|