Can rspack build support the output of gzip files? #2172
Answered
by
xc2
sweetwisdom
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
xc2
Apr 23, 2024
Replies: 3 comments 1 reply
-
gzip 是 server 端处理的,不是构建直接生产 gzip 文件 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以使用这个 webpack 插件:https://github.com/webpack-contrib/compression-webpack-plugin // rsbuild.config.ts
import CompressionPlugin from "compression-webpack-plugin";
export default defineConfig({
// ...
tools: {
rspack: {
plugins: [new CompressionPlugin({})]
}
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chenjiahan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以使用这个 webpack 插件:https://github.com/webpack-contrib/compression-webpack-plugin