New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(web): less loader javascriptEnabled
option
#8327
feat(web): less loader javascriptEnabled
option
#8327
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/5nU8iDnMNMBJAM1yZSeSa48JdhjB |
javascriptEnabled
option
javascriptEnabled
optionjavascriptEnabled
option
javascriptEnabled
optionjavascriptEnabled
option
3a99403
to
334c230
Compare
7114862
to
e5f1d3c
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e5f1d3c
to
2a71057
Compare
2a71057
to
af10596
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
If run project with
antd
library and try to compile custom less styles, we have the following error:Error during bundle: SyntaxError: Inline JavaScript is not enabled. Is it set in your options? in .../node_modules/antd/lib/style/color/bezierEasing.less on line 110, column 1: 109 // https://github.com/ant-design/ant-motion/issues/44 110 .bezierEasingMixin(); 111
Expected Behavior
So we expect not to have this error =)
Related Issue(s)
I didn't found any related issue with
javascriptEnabled
keyword, so I don't refer to any issue, unfortunately.Fixes #
To fix the problem, we need to pass
javascriptEnabled: true
option to less loader inside postcss plugin.