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
能否使js路径基于/lib,而css/scss路径基于非lib的路径,比如packages,thx! 用于支持自定义主题的按需引入(引入变量方式) Converts
import { Button } from 'element-ui'
To
var button = require('element-ui/lib/button') require('element-ui/packages/theme-chalk/src/button.scss')
The text was updated successfully, but these errors were encountered:
相同的问题! 自定义主题的时候,会把lib下的css打包
Sorry, something went wrong.
我找到了解决方案,只需要像下面这样设置. 代码中正常导入自定义主题scss文件就好了
"plugins": [ [ "component", { "libraryName": "element-ui", "style":false } ] ]
试试在目录前加~
[ "component", { "libraryName": "element-ui", "styleLibraryName": "~node_modules/element-ui-theme/dist/theme" }, "" ],
No branches or pull requests
能否使js路径基于/lib,而css/scss路径基于非lib的路径,比如packages,thx!
用于支持自定义主题的按需引入(引入变量方式)
Converts
To
The text was updated successfully, but these errors were encountered: