It is recommended to enable SourceMap for production environments to facilitate debugging in production environments. If you have a large project, it is recommended that you choose a configuration with better performance (see devtool for more options), such as the source-map
configuration option.
During the production build, Rspack uses the built-in minimizer to minify JavaScript and CSS code by default. You can use SwcJsMinimizerRspackPlugin and LightningCssMinimizerRspackPlugin for configuration.
If the built-in minimizer cannot meet your needs, you can also use optimization.minimizer to set custom minimizers.