-
Hi all, my npm run deploy serves plain output production files. My expectation of the deploy script is to deliver files "gzipped" to optimize performance when loading the page. The devServer config contains a flag to toggle the setting: (https://modernjs.dev/en/configure/app/tools/dev-server.html#compress) export default {
tools: {
devServer: {
// gzip compression setting for serving output files
compress: false,
},
},
}; Since this setting is only available for devServer, how do you control compression for production builds? Thank's in advance and best regards! |
Beta Was this translation helpful? Give feedback.
Answered by
zllkjc
Mar 4, 2025
Replies: 1 comment 4 replies
-
The feature you want is not support now. But you can use Middleware to implement it. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And we can support it internally in the future