Closed zillionare closed 6 days ago
Describe the bug
I'm developing a slidev theme: https://github.com/zillionare/slidev-theme-rich Everything works ok when checked by npm run dev. However, if I try to build it, unocss warning happens:
npm run dev
[plugin:unocss:global:build:bundle] [plugin unocss:global:build:bundle] [unocss] Entry module not found. Did you add `import 'uno.css'` in your main entry? (x2)
And the final result is broken.
Minimal reproduction
Steps to reproduce the behavior:
npm run build
Environment
More screenshots:
the right one(dev mode):
the bad one(build mode)
It's my first theme, so maybe I'm asking dumb questions, thanks if you can help.
I think removing the UnoCSS plugin in your vite.config.ts can solve this. Slidev has imported that plugin internally.
Verified and many thanks!
Describe the bug
I'm developing a slidev theme: https://github.com/zillionare/slidev-theme-rich Everything works ok when checked by
npm run dev
. However, if I try to build it, unocss warning happens:And the final result is broken.
Minimal reproduction
Steps to reproduce the behavior:
npm run dev
, check the output, everything is ok.npm run build
, the above warning appears and the webpage is broken.Environment
More screenshots:
the right one(dev mode):
the bad one(build mode)
It's my first theme, so maybe I'm asking dumb questions, thanks if you can help.