We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lessLoader实现全局变量注入,这个lessLoader应该怎么配置,官方文档上也没有说的很清楚
The text was updated successfully, but these errors were encountered:
直接配传给 less-loader 的 options 参数值,也就是上图红框部分
options
另外需要说明下,lessLoader 配置项仅作用于组件库文档构建,不会对组件库源码构建产生影响,所以建议单独在每个 less 文件里引入变量文件确保组件库发布后可以正常工作,且 less 中暂无法使用别名,需要用相对路径引入其他文件,ref:umijs/father#679
lessLoader
Sorry, something went wrong.
No branches or pull requests
Question
lessLoader实现全局变量注入,这个lessLoader应该怎么配置,官方文档上也没有说的很清楚
Sample Code
The text was updated successfully, but these errors were encountered: