-
Notifications
You must be signed in to change notification settings - Fork 405
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
The style config can't work for function #602
Comments
style配置中写函数就不生效,不会根据函数返回的路径导入,除非用true或css。 |
我也遇到同样问题了,怎么整 |
你可以不用这种自定义路径的配置方式,比如你打包的时候把样式文件全部弄一个文件夹下 plugins: [
[
"import",
{
libraryName: "@gypsophlia/create-ui",
styleLibraryDirectory: "lib/theme",
},
],
]; |
我也遇到相似的问题了,看了插件的代码,如果style是函数也会处理,为啥不生效啊。。。 @sorrycc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In above config, when run
npm run serve
, the css style can't work, But don't cause import error.But when set
style:"css"
orstyle:true
, the css file will cause import error:Module not found: Error: Can't resolve 'create-ui-lib/lib/chatbox/style/css'
That means the css file isn't imported. Why not useful for function?
The text was updated successfully, but these errors were encountered: