---
title: "AssetsPluginOptions"
description: "Options for [assets](https://pitlane.tools/package/assets/vite-plugin/function/assets.md). `remix()` from `@pitlane/vite-plugin-remix` accepts them as `remix({ assets })`."
url: "https://pitlane.tools/package/assets/vite-plugin/interface/AssetsPluginOptions"
---

# AssetsPluginOptions

```ts
import type { AssetsPluginOptions } from "@pitlane/assets/vite-plugin";
```

Options for [assets](https://pitlane.tools/package/assets/vite-plugin/function/assets.md). `remix()` from `@pitlane/vite-plugin-remix` accepts them as `remix({ assets })`.

## Properties

### allowFiles?

```ts
optional allowFiles?: string[];
```

Files and globs, relative to the Vite root, that may reach the browser. Setting it turns on the browser boundary: a build that would publish any other file fails, and `vite dev` refuses to serve one. Read as `remix/assets` reads it; a directory path matches every file below it.

---

### allowPackages?

```ts
optional allowPackages?: string[];
```

Packages that may reach the browser, with their `dependencies` and installed `optionalDependencies`. Peer dependencies are not included. Requires `allowFiles`.

---

### chunkImportMap?

```ts
optional chunkImportMap?: boolean;
```

Override Vite's native setting. With neither setting present, maps are disabled.

---

### denyFiles?

```ts
optional denyFiles?: string[];
```

Files and globs refused even when `allowFiles` or `allowPackages` allows them. Requires `allowFiles`.

---

### include?

```ts
optional include?: string[];
```

Extra source keys to make available as client entries or assets.

---

### serverEnvironments?

```ts
optional serverEnvironments?: string[];
```

Server environments whose module graphs provide metadata. Defaults to `["ssr"]`.
