Skip to content

Commit f19461b

Browse files
authored
docs: update migration guide for style-loader v4 (#7272)
1 parent aefab08 commit f19461b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

website/docs/en/guide/upgrade/v1-to-v2.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ The built-in rules in the Less/Sass/Stylus plugins have the same `oneOf` change,
521521

522522
- The query parameter `?__inline=false` has been removed, use `?url` instead.
523523
- The `dev.setupMiddlewares` option is deprecated, use [server.setup](/config/server/setup) instead.
524+
- `style-loader` has been upgraded from v3 to v4, and some options of `tools.styleLoader` have changed. See the [style-loader v4.0.0 release notes](https://github.com/webpack/style-loader/releases/tag/v4.0.0) for details.
524525
- The deprecated template parameters have been removed from `html.templateParameters`
525526
- `webpackConfig`: use `rspackConfig` instead.
526527
- `htmlWebpackPlugin`: use `htmlPlugin` instead.

website/docs/zh/guide/upgrade/v1-to-v2.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ Less / Sass / Stylus 插件的内置规则也已采用相同的 `oneOf` 结构
521521

522522
- 查询参数 `?__inline=false` 已被移除,使用 `?url` 代替。
523523
- `dev.setupMiddlewares` 配置项已废弃,请使用 [server.setup](/config/server/setup) 代替。
524+
- `style-loader` 从 v3 升级到了 v4,`tools.styleLoader` 的部分配置项发生变化,详见 [style-loader v4.0.0 发布说明](https://github.com/webpack/style-loader/releases/tag/v4.0.0)
524525
- `html.templateParameters` 中废弃的默认参数已被移除:
525526
- `webpackConfig`:使用 `rspackConfig` 代替。
526527
- `htmlWebpackPlugin`:使用 `htmlPlugin` 代替。

0 commit comments

Comments
 (0)