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
iconify Icons in Pug lost when Build #1150
Comments
@miswanting it seems the regex is wrong (in dev just works), with your repro, debugging the extractor (rn I'm checking it): |
when building, previous call is missing: so we need to fix the regex |
On dev just works because there is an extra call with the On build this call is missing, so the regex will use the raw entry, on Windows we have |
Similar Issue: #168
Bugs occur when the following conditions are met.
\n
s in it, fine;@iconify-json/*
icon in pug template.i-mdi-window-close
(or anything) in@iconify-json/mdi
.vite build
Reproduce Steps
Repo: bug-icon-in-pug-lost-when-build
package.json
vite.config.ts
unocss.config.ts
tsconfig.json
index.html
src/index.ts
src/index.vue
The text was updated successfully, but these errors were encountered: