Browse Source

docs: update docs for less-loader@6 (#23603)

* update docs for less-loader@6

* Revert "update docs for less-loader@6"

This reverts commit 5be1a428dc.

* update

* update

* update

* in line
pull/23614/head
Amumu 5 years ago
committed by GitHub
parent
commit
656b5abf65
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/react/customize-theme.en-US.md
  2. 4
      docs/react/customize-theme.zh-CN.md
  3. 2
      docs/react/use-with-create-react-app.en-US.md
  4. 2
      docs/react/use-with-create-react-app.zh-CN.md

4
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, // 开启紧凑模式

4
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, // 开启紧凑模式

2
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' },
+ },

2
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' },
+ },

Loading…
Cancel
Save