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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
6 additions and
6 deletions
-
docs/react/customize-theme.en-US.md
-
docs/react/customize-theme.zh-CN.md
-
docs/react/use-with-create-react-app.en-US.md
-
docs/react/use-with-create-react-app.zh-CN.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, // 开启紧凑模式 |
|
|
|
|
|
@ -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, // 开启紧凑模式 |
|
|
|
|
|
@ -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' }, |
|
|
|
+ }, |
|
|
|
|
|
@ -191,7 +191,7 @@ module.exports = override( |
|
|
|
+ style: true, |
|
|
|
}), |
|
|
|
+ addLessLoader({ |
|
|
|
+ lessOptions: { |
|
|
|
+ lessOptions: { // 如果使用less-loader@5,请移除 lessOptions 这一级直接配置选项。 |
|
|
|
+ javascriptEnabled: true, |
|
|
|
+ modifyVars: { '@primary-color': '#1DA57A' }, |
|
|
|
+ }, |
|
|
|