Fix less config

Otherwise there is a error:

```
Failed to compile.

./node_modules/antd/es/button/style/index.lessModule build failed:

// https://github.com/ant-design/ant-motion/issues/44
.bezierEasingMixin();^
Inline JavaScript is not enabled. Is it set in your options?
      in /.../node_modules/antd/es/style/color/bezierEasing.less (line 110, column 0)
```

Solution found here:
https://github.com/ant-design/ant-design/issues/7927#issuecomment-400368810
This commit is contained in:
Dmitry Guryev 2018-09-04 17:07:15 +02:00 committed by GitHub
parent 531a76de29
commit 54bd6a32d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,7 @@ $ yarn add react-app-rewire-less --dev
};
+ config = rewireLess.withLoaderOptions({
+ javascriptEnabled: true,
+ modifyVars: { "@primary-color": "#1DA57A" },
+ })(config, env);