Skip to content
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

app.css中import第三方css文件报错 #18

Open
thoomi2009 opened this issue Sep 5, 2024 · 1 comment
Open

app.css中import第三方css文件报错 #18

thoomi2009 opened this issue Sep 5, 2024 · 1 comment

Comments

@thoomi2009
Copy link

src 目录下有 app.css,windi.css文件。app.css文件中

@import "windi.css"

运行的时候,报错。

[ WXSS 文件编译错误] 
path `windi.css` not found from `./app.wxss`.(env: Windows,mp,1.06.2405020; lib: 3.5.6)

把windi.css 改为windi.wxss是可以的。但是当windi.css 有更新的时候,页面css加载失败

@calandnong
Copy link

src 目录下有 app.css,windi.css文件。app.css文件中

@import "windi.css"

运行的时候,报错。

[ WXSS 文件编译错误] 
path `windi.css` not found from `./app.wxss`.(env: Windows,mp,1.06.2405020; lib: 3.5.6)

把windi.css 改为windi.wxss是可以的。但是当windi.css 有更新的时候,页面css加载失败

这里需要自己加一下打包过去,可以参考build.js中app.css的拷贝方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants