You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to configure code minification
3
+
---
4
+
5
+
# Minify
6
+
7
+
Brisa automatically optimizes your production builds by minifying JavaScript and CSS bundles. This reduces file sizes by removing whitespace, shortening variable names, and applying other safe optimizations.
8
+
9
+
10
+
**brisa.config.ts**:
11
+
12
+
```ts {4}
13
+
importtype { Configuration } from"brisa";
14
+
15
+
exportdefault {
16
+
minify: true// or false to disable
17
+
} satisfiesConfiguration;
18
+
```
19
+
20
+
## Default Behavior (`minify` config field not specified)
21
+
22
+
-**Development mode** (`brisa dev`): Minification is automatically disabled for better debugging
23
+
-**Production mode** (`brisa build`): Minification is automatically enabled
0 commit comments