Skip to content

Commit

Permalink
docs: correct LightningCssMinimizerRspackPlugin link (#7551)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng authored Aug 13, 2024
1 parent ce9b3fa commit 6174c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/config/optimization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ to false will disable this optimization.
/>

Customize the minimizer. By default, [`rspack.SwcJsMinimizerRspackPlugin`](/plugins/rspack/swc-js-minimizer-rspack-plugin)
and [`rspack.LightningCssMinimizerRspackPlugin`](/plugins/rspack/swc-css-minimizer-rspack-plugin) are used.
and [`rspack.LightningCssMinimizerRspackPlugin`](/plugins/rspack/lightning-css-minimizer-rspack-plugin) are used.
When `optimization.minimizer` is specified, the default minimizers will be disabled.

```js title=rspack.config.js
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/config/optimization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import WebpackLicense from '@components/WebpackLicense';
/>

自定义压缩器。默认使用 [`rspack.SwcJsMinimizerRspackPlugin`](/plugins/rspack/swc-js-minimizer-rspack-plugin)
[`rspack.LightningCssMinimizerRspackPlugin`](/plugins/rspack/swc-css-minimizer-rspack-plugin)。当声明了 `optimization.minimizer`,默认压缩器会被禁用。
[`rspack.LightningCssMinimizerRspackPlugin`](/plugins/rspack/lightning-css-minimizer-rspack-plugin)。当声明了 `optimization.minimizer`,默认压缩器会被禁用。

```js title=rspack.config.js
const terserPlugin = require('terser-webpack-plugin');
Expand Down

0 comments on commit 6174c50

Please sign in to comment.