Browse Source
Update: Add `lessOptions` in the use-with-create-react-app (#23596)
pull/23606/head
Heechan Bak
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
4 deletions
-
docs/react/use-with-create-react-app.en-US.md
-
docs/react/use-with-create-react-app.zh-CN.md
|
|
@ -191,8 +191,10 @@ module.exports = override( |
|
|
|
+ style: true, |
|
|
|
}), |
|
|
|
+ addLessLoader({ |
|
|
|
+ javascriptEnabled: true, |
|
|
|
+ modifyVars: { '@primary-color': '#1DA57A' }, |
|
|
|
+ lessOptions: { |
|
|
|
+ javascriptEnabled: true, |
|
|
|
+ modifyVars: { '@primary-color': '#1DA57A' }, |
|
|
|
+ }, |
|
|
|
+ }), |
|
|
|
); |
|
|
|
``` |
|
|
|
|
|
@ -191,8 +191,10 @@ module.exports = override( |
|
|
|
+ style: true, |
|
|
|
}), |
|
|
|
+ addLessLoader({ |
|
|
|
+ javascriptEnabled: true, |
|
|
|
+ modifyVars: { '@primary-color': '#1DA57A' }, |
|
|
|
+ lessOptions: { |
|
|
|
+ javascriptEnabled: true, |
|
|
|
+ modifyVars: { '@primary-color': '#1DA57A' }, |
|
|
|
+ }, |
|
|
|
+ }), |
|
|
|
); |
|
|
|
``` |
|
|
|