Nick Chen's Blog

Tailwind CSS IntelliSense VSCode Plugin 失效

·1 min read·Nick Chen
–pv–uv

[Info - 19:49:35] [GLOBAL] No matching project for document { fsPath: 'xxx' }

解决#

不要在 style 标签里引入 @import "tailwindcss"; ,改为<link rel="stylesheet" href="style.css">引入。

问题#

tailwind 插件会检测一个 css 文件为基础来建立项目,必须创建一个 css 文件

https://github.com/tailwindlabs/tailwindcss-intellisense/issues/1154#issuecomment-2628101875

本文采用 CC BY-NC-SA 4.0 许可,转载请注明出处。

–comments

Comments

用 GitHub 登录以评论

Sign in with GitHub

Loading comments…