foreword
unocss
No webstorm
plug-ins, no code hints, it's hard to use
solution
unocss
It is also used tailwindcss
, so it can tailwindcss
be prompted with the help of plug-ins.
step
Installtailwindcss
pnpm install tailwindcss
Add configuration file
npx tailwindcss init -p
added to.gitignore
will /tailwind.config.js
be added to.gitignore
rollback dependencies
Roll back the package.json
corresponding lock
file
Note: Do not delete node_modules/tailwindcss
, tailwindcss
the code prompts dependent tailwindcss
folders