-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
fix: esbuild.charset
not work with css plugin.
#12993
fix: esbuild.charset
not work with css plugin.
#12993
Conversation
|
@patak-dev @bluwy CI progress has hung up. Need helps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you move the code inside resolveEsbuildMinifyOptions
?
Sorry, I don't intend to put this code in Additionally, If there are more places in the future that need to use options related to both |
I should have put #9210 in If we put |
I understand. I was going to ask you to fix it. Maybe you can rename |
Description
Vite@4 has set the default config
esbuild.charset
toutf8
, and in #12565 , the default configuration forplugin:css
has also been set toutf8
This operation may lead to the generation of iconfont files being escaped, causing display errors in some cases. Although I can modify the
esbuild.charset
invite.config.ts
, it seems that the parameter is not passed to theplugin:css
. I need to make it work.Additional context
This is the effect of using iconfont(css) after Vite 4.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).