mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-01 07:20:20 +00:00
Migrate docs to language-prefixed app routes and split content into zh/en trees, including translated English navigation and pages. Made-with: Cursor
11 lines
432 B
Plaintext
11 lines
432 B
Plaintext
---
|
|
title: public 目录
|
|
description: public 与 MSW Service Worker
|
|
---
|
|
|
|
# public 目录
|
|
|
|
模板将 **`public/`** 用于不会被 bundler 改名的静态资源(如 `favicon`)。
|
|
|
|
同时,**MSW** 浏览器端 worker 的路径由 **`package.json` → `msw.workerDirectory`** 指向 `public`(两模板一致)。调整 `public` 结构时注意 **不要破坏 Mock Service Worker** 所需的生成文件与服务注册路径。
|