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

pull/23606/head
Heechan Bak 5 years ago committed by GitHub
parent 60f3e775d0
commit 88cab9547b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save