---
title: "Control your asset optimization settings from netlify.toml | Netlify"
description: "Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/blog/2019/08/05/control-your-asset-optimization-settings-from-netlify.toml/"
last_updated: "2026-11-08T02:22:50.000Z"
---
Netlify deploys include the ability to automatically optimize assets as part of the build process.

Available options like CSS and JS minification, image compression, and pretty URLs allow you to improve the performance of your sites with just a few clicks.

![](/v3/img/blog/assetoptimization.png)

Until now, this feature was only available via the admin interface. We are happy to announce that from today, you’ll also be able to control these options directly in your code as part of your `netlify.toml` file. Now you can keep your code and configuration all in the same place, and under the same version control.

This also provides very granular control over these optimizations, right down to a per-deploy-context basis. For example, if you want to try out CSS bundle and minify on a specific branch, the settings would look something like:

```
# Default site wide settings[build.processing]  skip_processing = true
# Branch specific settings[context.branch-name.processing]  skip_processing = false[context.branch-name.processing.css]  bundle = true  minify = true
```

We think that this is a useful improvement in the level of control you have over these post-processing steps. It’s something we have been wanting to do for a long time.

Find more details and options in the [netlify.toml reference docs](https://docs.netlify.com/configure-builds/file-based-configuration/#post-processing) and feel free to give it a shot 🙂 — this capability is now live!

Let us know what you think over in the [Netlify Community](https://community.netlify.com/t/control-your-asset-optimization-settings-from-netlify-toml/2533).

### Share

-   [X (fka Twitter) ](https://twitter.com/intent/tweet?text=Control your asset optimization settings from netlify.toml&url=https://www.netlify.com/blog/2019/08/05/control-your-asset-optimization-settings-from-netlify.toml/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2019%2F08%2F05%2Fcontrol-your-asset-optimization-settings-from-netlify.toml%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2019/08/05/control-your-asset-optimization-settings-from-netlify.toml/)
-   [Bluesky](https://bsky.app/intent/compose?text=Control your asset optimization settings from netlify.toml+https://www.netlify.com/blog/2019/08/05/control-your-asset-optimization-settings-from-netlify.toml/)

* * *

### Tags

-   [Features](/blog/tags/features/)
-   [CI](/blog/tags/ci/)
-   [Builds](/blog/tags/builds/)

## Keep reading

![](/images/blog/edge-functions-firecracker-microvms.png)

News & Announcements September 29, 2026

[

### 5x faster Edge Functions: v8 isolates to Unikraft MicroVMs

](/blog/edge-functions-firecracker-microvms/)

-   Jake Champion
    
-   ![Profile picture of Aarthy Chandrasekhar](/images/people/aarthy-chandrasekhar.jpg)
    
    Aarthy Chandrasekhar
    
-   ![Profile picture of Ivan Zarea](/_astro/451968a8e873f95cf69c7edd78eb29a9035541eb-1024x1024_2wyTXf.webp)
    
    Ivan Zarea
    

![](/_astro/293b82c564c394853a3b9f6f7c4df278dd41846d-1200x675_1XQqSx.webp)

News & Announcements August 25, 2026

[

### Compete in OpenAI’s WebMCP Challenge with Netlify

](/blog/compete-openai-webmcp-challenge/)

-   ![Profile picture of Karthik Puvvada](/_astro/e5524d3c315ad5114e1d5300d8991bfe902916fe-192x192_qfdWJ.webp)
    
    Karthik Puvvada
    

## Recent posts

News & Announcements September 29, 2026

[

### 5x faster Edge Functions: v8 isolates to Unikraft MicroVMs

](/blog/edge-functions-firecracker-microvms/)

-   Jake Champion
    
-   ![Profile picture of Aarthy Chandrasekhar](/images/people/aarthy-chandrasekhar.jpg)
    
    Aarthy Chandrasekhar
    
-   ![Profile picture of Ivan Zarea](/_astro/451968a8e873f95cf69c7edd78eb29a9035541eb-1024x1024_2wyTXf.webp)
    
    Ivan Zarea
    

Opinions & Insights September 22, 2026

[

### How we built Git storage for millions of Netlify projects

](/blog/how-we-built-git-storage-for-millions/)

-   ![Profile picture of Philippe Serhal](/_astro/795792fe4d14648b1b96285e46426ed964b802d7-512x512_Z23ebKb.webp)
    
    Philippe Serhal
    

Tools & Services September 10, 2026

[

### Cursor Origin repositories build, preview, and deploy on Netlify

](/blog/cursor-origin-repositories-on-netlify/)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_Z202edR.webp)
    
    Gehrig Kunz
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_nzSVh.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)