米饭

Results 5 comments of 米饭

I wanted to implement @unocss/inspector, but the vite plugin used in the project, vite-plugin-html, blocked access to localhost:5173/__unocss You can take a look at this stackblitz : https://stackblitz.com/edit/unocss-unocss-eorvyy?file=vite.config.ts ![image](https://github.com/unocss/unocss/assets/45170904/b66c7450-4b0c-4e30-982e-ab75ed57ed6d) ![image](https://github.com/unocss/unocss/assets/45170904/15b716e4-271e-410a-a196-2184a6630565)

这是咱们的一个路径 ![image](https://github.com/vbenjs/vite-plugin-theme/assets/45170904/69a00638-47f8-4f8c-8146-c45ab5db1910)' 我看到其他的项目是这样的一个路径 ![image](https://github.com/vbenjs/vite-plugin-theme/assets/45170904/b830d832-1e64-411a-b973-9f20b44f261f) '

我是将vite-plugin-html插件调整到 production 环境下就可以了, 因为vite开发环境下支持 env 变量输入到html

![image](https://github.com/antfu/purge-icons/assets/45170904/9228ab9b-6fcf-4270-a784-f8bf44b217fe) ![image](https://github.com/antfu/purge-icons/assets/45170904/76551d7e-a737-4e65-a6db-2b47c0b95561) If I use fast-glob to match other directories, then this will scan node_modules as well

The main purpose is to implement this similar functionality in monorepo. ![image](https://github.com/unjs/unbuild/assets/45170904/9c580fe5-be85-4e19-b8f3-080f4563cd8a) ![image](https://github.com/unjs/unbuild/assets/45170904/10fcc10a-bca2-4e07-bec4-e3facda8db83) In order to achieve this effect, I made a method, I do not know if there is...