mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
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:
parent
531a76de29
commit
54bd6a32d1
@ -200,6 +200,7 @@ $ yarn add react-app-rewire-less --dev
|
||||
};
|
||||
|
||||
+ config = rewireLess.withLoaderOptions({
|
||||
+ javascriptEnabled: true,
|
||||
+ modifyVars: { "@primary-color": "#1DA57A" },
|
||||
+ })(config, env);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user