---
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-07-28T12:51:51.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%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

![](/_astro/d0354fe52c160a3abdfdeff297a1baf090302a3d-1600x900_Z1eDdJG.webp)

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

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

![](/_astro/8cc710924ebf8880283553465808eac2611fd379-1600x900_Z2eTTQe.webp)

News & Announcements July 13, 2026

[

### Netlify inside of Claude Design

](/blog/netlify-inside-of-claude-design)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

## Recent posts

Tools & Services July 27, 2026

[

### The 13-year story of Netlify Drop

](/blog/thirteen-years-of-netlify-drop)

-   ![Profile picture of Wade Wegner](/_astro/0302ff22eb844e648b11d7cff3cedbbc3c9de876-2667x4000_Z5j6wM.webp)
    
    Wade Wegner
    

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

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

News & Announcements July 13, 2026

[

### Netlify inside of Claude Design

](/blog/netlify-inside-of-claude-design)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

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

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

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