From ad9090625e3929064bc8cd850d69d19ed9d1c55a Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Mon, 11 Mar 2024 15:44:12 +0800 Subject: [PATCH] Update docs/docs/docs/api/plugin-api.md Co-authored-by: Peach --- docs/docs/docs/api/plugin-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/docs/api/plugin-api.md b/docs/docs/docs/api/plugin-api.md index fa954dded9eb..e0573d3c9f2f 100644 --- a/docs/docs/docs/api/plugin-api.md +++ b/docs/docs/docs/api/plugin-api.md @@ -444,7 +444,7 @@ api.chainWebpack(( memo, { webpack, env}) => { ``` > 注意: 如果要添加自定义的文件类型相关 loader 请额外设置 `type: "javascript/auto"`,否则会命中兜底的 asset rule。示例如下: -``` +```js config.module .rule('abc') .test(/\.abc$/)