Skip to content

Commit

Permalink
docs: how to disable publicDir (vitejs#4074)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jul 2, 2021
1 parent e44343a commit d697ef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,13 @@ export default async ({ command, mode }) => {

### publicDir

- **Type:** `string`
- **Type:** `string | false`
- **Default:** `"public"`

Directory to serve as plain static assets. Files in this directory are served at `/` during dev and copied to the root of `outDir` during build, and are always served or copied as-is without transform. The value can be either an absolute file system path or a path relative to project root.

Defining `publicDir` as `false` disables this feature.

See [The `public` Directory](/guide/assets#the-public-directory) for more details.

### cacheDir
Expand Down

0 comments on commit d697ef3

Please sign in to comment.