mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Fix legacy gzip warning (#3884)
Fix legacy gzip warning. Thanks to @liam-potter for pointing that out! Related PR: #3863 ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [x] All new and existing tests passed.
This commit is contained in:
parent
2ee5a2982a
commit
6fc78ea024
@ -174,7 +174,7 @@ Options.from = function (_options) {
|
||||
|
||||
// Compression middleware legacy
|
||||
if (options.render.gzip) {
|
||||
consola.warn('render.gzip is deprecated and will be removed in a future version! Please switch to build.render.compressor')
|
||||
consola.warn('render.gzip is deprecated and will be removed in a future version! Please switch to render.compressor')
|
||||
options.render.compressor = options.render.gzip
|
||||
delete options.render.gzip
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user