diff --git a/docs/react/customize-theme.en-US.md b/docs/react/customize-theme.en-US.md index a0763b197d..63187a7fb7 100644 --- a/docs/react/customize-theme.en-US.md +++ b/docs/react/customize-theme.en-US.md @@ -51,7 +51,7 @@ module.exports = { }, { loader: 'less-loader', // compiles Less to CSS + options: { -+ lessOptions: { ++ lessOptions: { // If you are using less-loader@5 please spread the lessOptions to options directly + modifyVars: { + 'primary-color': '#1DA57A', + 'link-color': '#1DA57A', @@ -198,7 +198,7 @@ module.exports = { }, { loader: 'less-loader', // compiles Less to CSS + options: { -+ lessOptions: { ++ lessOptions: { // If you are using less-loader@5 please spread the lessOptions to options directly + modifyVars: getThemeVariables({ + dark: true, // 开启暗黑模式 + compact: true, // 开启紧凑模式 diff --git a/docs/react/customize-theme.zh-CN.md b/docs/react/customize-theme.zh-CN.md index 7a97c21322..e77a4b1ecc 100644 --- a/docs/react/customize-theme.zh-CN.md +++ b/docs/react/customize-theme.zh-CN.md @@ -51,7 +51,7 @@ module.exports = { }, { loader: 'less-loader', // compiles Less to CSS + options: { -+ lessOptions: { ++ lessOptions: { // 如果使用less-loader@5,请移除 lessOptions 这一级直接配置选项。 + modifyVars: { + 'primary-color': '#1DA57A', + 'link-color': '#1DA57A', @@ -176,7 +176,7 @@ module.exports = { }, { loader: 'less-loader', // compiles Less to CSS + options: { -+ lessOptions: { ++ lessOptions: { // 如果使用less-loader@5,请移除 lessOptions 这一级直接配置选项。 + modifyVars: getThemeVariables({ + dark: true, // 开启暗黑模式 + compact: true, // 开启紧凑模式 diff --git a/docs/react/use-with-create-react-app.en-US.md b/docs/react/use-with-create-react-app.en-US.md index 6367f469c2..96575dab77 100644 --- a/docs/react/use-with-create-react-app.en-US.md +++ b/docs/react/use-with-create-react-app.en-US.md @@ -191,7 +191,7 @@ module.exports = override( + style: true, }), + addLessLoader({ -+ lessOptions: { ++ lessOptions: { // If you are using less-loader@5 please spread the lessOptions to options directly + javascriptEnabled: true, + modifyVars: { '@primary-color': '#1DA57A' }, + }, diff --git a/docs/react/use-with-create-react-app.zh-CN.md b/docs/react/use-with-create-react-app.zh-CN.md index a7fb004159..125e48bd9f 100644 --- a/docs/react/use-with-create-react-app.zh-CN.md +++ b/docs/react/use-with-create-react-app.zh-CN.md @@ -191,7 +191,7 @@ module.exports = override( + style: true, }), + addLessLoader({ -+ lessOptions: { ++ lessOptions: { // 如果使用less-loader@5,请移除 lessOptions 这一级直接配置选项。 + javascriptEnabled: true, + modifyVars: { '@primary-color': '#1DA57A' }, + },