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

有没有大佬教一下 vue-cli 4.x 怎么写配置 #3

Closed
DoveAz opened this issue Apr 21, 2022 · 2 comments
Closed

有没有大佬教一下 vue-cli 4.x 怎么写配置 #3

DoveAz opened this issue Apr 21, 2022 · 2 comments

Comments

@DoveAz
Copy link

DoveAz commented Apr 21, 2022

No description provided.

@styzhang styzhang reopened this Apr 21, 2022
@styzhang
Copy link
Owner

styzhang commented Apr 21, 2022

@DoveAz
MD里有个用法示例:
image
按这个不行的话,先使用vue inspect > output.js输出查看下webpack的配置,找到sass-loader的相关配置,然后配置将css-unicode-loader配置sass-loader前面就行了,例如:
未配置css-unicode-loader前的输出:
image
配置css-unicode-loader后的输出:
image

@DoveAz
Copy link
Author

DoveAz commented Apr 22, 2022

多谢大佬,原来是我看走眼了,写在chainWebpack里了,一直报错

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