diff --git a/netlify.toml b/netlify.toml index 418d43ee0..824a24d87 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,6 +3,18 @@ command = "make netlify" environment = { BASE_URL = "https://esphome.io" } +[build.processing] + # only size-minimize everything in production + skip_processing = true +[build.processing.css] + bundle = true + minify = true +[build.processing.js] + bundle = true + minify = true +[build.processing.images] + compress = true + [context.beta] environment = { BASE_URL = "https://beta.esphome.io" } @@ -11,6 +23,8 @@ [context.production] environment = { BASE_URL = "https://esphome.io", PRODUCTION = "YES" } +[context.production.processing] + skip_processing = false # A basic redirect rule [[redirects]]