Most of the suggestion is in the title. When I audited with Lighthouse my static website deployed with the serverless website component, I found out that I had a lot to win by gzipping my assets.
Gzipping is not enabled by default when creating the distribution as I could see it here
I suggest to set this value to true by default instead of false
Otherwise, if for some reason the default behaviour should not change, I suggest adding it as an optional input in the serverless.yml file
Hello!
Most of the suggestion is in the title. When I audited with Lighthouse my static website deployed with the serverless website component, I found out that I had a lot to win by gzipping my assets.
Gzipping is not enabled by default when creating the distribution as I could see it here
I suggest to set this value to
true
by default instead offalse
Otherwise, if for some reason the default behaviour should not change, I suggest adding it as an optional input in the serverless.yml file
I'd be happy to do the pull request.