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]: 希望可以默认生成tailwind.config.js以支持VS Code的插件智能提示 #3919

Closed
xmsz opened this issue Jun 12, 2023 · 4 comments

Comments

@xmsz
Copy link

xmsz commented Jun 12, 2023

这个功能解决了什么问题?

image - 需要tailwindCss的补全 - 现在需要手动创建`tailwind.config.js`有点麻烦

你期望的 API 是什么样子的?

  • 希望启用tailwindCss的时候,自动生成这个文件
@chenjiahan
Copy link
Member

这个场景确实需要适配一波。

除了需要创建 tailwind.config.js,是不是也需要把 Modern.js 里设置的 tailwindcss 默认值也填充进去嘞?这样 IDE 插件才能读取到完整的配置。

另外 modern.config.ts 里是不是得手动引用一下这个文件,设置到 tools.tailwindcss 配置项上。

@UNDERCOVERj
Copy link
Contributor

还要考虑monorepo的情况,不过插件好像可以支持每个workspace单独的tailwindcss config配置

@chenjiahan
Copy link
Member

嗯嗯,monorepo 应该是 vscode 插件考虑的事情

@chenjiahan
Copy link
Member

I wrote a new RFC for this issue: #4509

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

No branches or pull requests

3 participants