ant-design / ant-motion

:bicyclist: Animate specification and components of Ant Design
http://motion.ant.design
MIT License
4.59k stars 358 forks source link

使用babel-plugin-import的style配置引入样式后出错 #182

Closed xgyyx closed 6 years ago

xgyyx commented 6 years ago

你好,我这边为了使用antd的定制主题,在webpack配置文件中使用babel-plugin-import配置,将配置值css改为true后,系统提示

Failed to compile.

./node_modules/antd/lib/button/style/index.less
Module build failed:

// https://github.com/ant-design/ant-motion/issues/44
.bezierEasingMixin();
^
Inline JavaScript is not enabled. Is it set in your options?
      in /Users/yaoyanxun/Documents/ReactProject/management-project/node_modules/antd/lib/style/color/bezierEasing.less (line 110, column 0)
ant-design-bot commented 6 years ago

Translation of this issue:


Using babel-plugin-import style configuration error after importing style

Hello, I am here to use the custom theme of antd, use the babel-plugin-import configuration in the webpack configuration file, change the configuration value css to true, the system prompts

Failed to compile.

./node_modules/antd/lib/button/style/index.less
Module build failed:

// https://github.com/ant-design/ant-motion/issues/44
.bezierEasingMixin();
^
Inline JavaScript is not enabled. Is it set in your options?
      In /Users/yaoyanxun/Documents/ReactProject/management-project/node_modules/antd/lib/style/color/bezierEasing.less (line 110, column 0)
jljsj33 commented 6 years ago

https://github.com/ant-design/ant-motion/issues/44