Skip to content
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

[Feature Request] unocss-plugin 路径扫描支持带 dot 的路径 #1703

Open
lp0124 opened this issue Nov 15, 2024 · 0 comments
Open

[Feature Request] unocss-plugin 路径扫描支持带 dot 的路径 #1703

lp0124 opened this issue Nov 15, 2024 · 0 comments

Comments

@lp0124
Copy link

lp0124 commented Nov 15, 2024

希望能匹配到 node_modules里某个 npm包里的 mpx 文件

unocss: {
        styleIsolation: 'isolated',
        scan: {
          include: ['**/*', '**/node_modules/**/design-mpx/**'],
        },
},

实际的 file 为 /mpx-project/node_modules/.pnpm/[email protected][email protected]/node_modules/design-mpx/components/button/index.mpx

由于 unocss-plugin 里使用了 minimatch 这个库,默认不支持带.的路径
image
希望修改为
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant