fix(uni-mp-vite): 无法正确处理小程序平台的css文件后缀名 #5605
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #5604
自 unocss@66.1.0-beta.11 开始, 其内部移除了 unocss:global:build:bundle 插件, 使得当插入 uni:adjust-css-extname 插件时所依赖的插件成为了 unocss:global:build:generate, 造成无法获取 css 文件(此时 vite 内部还没有在 rollup 输出中添加 css 文件, 需要等到 vite:css-post 插件后), 因此这里直接使插件 uni:adjust-css-extname 的 generateBundle 钩子的排序为 post, 以便顺利获取到输出流程中的 css 文件进行处理