Browse Source

Update: Add `lessOptions` in the use-with-create-react-app (#23596)

pull/23606/head
Heechan Bak 5 years ago
committed by GitHub
parent
commit
88cab9547b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/react/use-with-create-react-app.en-US.md
  2. 6
      docs/react/use-with-create-react-app.zh-CN.md

6
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' },
+ },
+ }),
);
```

6
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' },
+ },
+ }),
);
```

Loading…
Cancel
Save