diff --git a/docs/react/use-in-typescript.zh-CN.md b/docs/react/use-in-typescript.zh-CN.md index 667d64b548..03b3760096 100644 --- a/docs/react/use-in-typescript.zh-CN.md +++ b/docs/react/use-in-typescript.zh-CN.md @@ -199,6 +199,7 @@ $ yarn add react-app-rewire-less --dev }; + config = rewireLess.withLoaderOptions({ ++ javascriptEnabled: true, + modifyVars: { "@primary-color": "#1DA57A" }, + })(config, env);