antdpro / antdp

一个基于 antd 和 umi 的初始级别项目,集成路由、dva(Redux)、选项卡等特性,用于简化 antd 5.x + 的部分使用。
https://antdpro.github.io/antdp
MIT License
18 stars 18 forks source link

Inline JavaScript is not enabled. Is it set in your options #170

Closed jaywcjlove closed 2 years ago

jaywcjlove commented 2 years ago
> @example/website@1.8.19 build /home/runner/work/antdp/antdp/examples/website
> kkt build

Creating an optimized production build...
Failed to compile.

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

https://github.com/antdpro/antdp/runs/4709998226?check_suite_focus=true

jaywcjlove commented 2 years ago
import lessModules from '@kkt/less-modules';

export default (conf, env, options) => {
  conf = lessModules.withLoaderOptions({
    lessOptions: { javascriptEnabled: true },
  })(conf, env, options);

  conf.module.exprContextCritical = false;
  return conf;
};
axbaa commented 1 year ago

阿斯顿