From 88cab9547bb14c52b5476b0e1588f1ecb6f8435b Mon Sep 17 00:00:00 2001 From: Heechan Bak Date: Sun, 26 Apr 2020 11:49:10 +0900 Subject: [PATCH] Update: Add `lessOptions` in the use-with-create-react-app (#23596) --- docs/react/use-with-create-react-app.en-US.md | 6 ++++-- docs/react/use-with-create-react-app.zh-CN.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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 11fad66fa8..6367f469c2 100644 --- a/docs/react/use-with-create-react-app.en-US.md +++ b/docs/react/use-with-create-react-app.en-US.md @@ -191,8 +191,10 @@ module.exports = override( + style: true, }), + addLessLoader({ -+ javascriptEnabled: true, -+ modifyVars: { '@primary-color': '#1DA57A' }, ++ lessOptions: { ++ 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 3b97bce8f5..a7fb004159 100644 --- a/docs/react/use-with-create-react-app.zh-CN.md +++ b/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' }, ++ }, + }), ); ```