
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
umi-plugin-tailwindcss
Advanced tools
This plugin is only valid for umijs 3.x,Umi4 has built-in support for Tailwindcss and is no longer needed for new projects. umi4 tailwind-css doc
Using npm:
$ npm install umi-plugin-tailwindcss -D
or using yarn:
$ yarn add umi-plugin-tailwindcss -D
tailwindCssFilePath?: string.
tailwind.css file path, can be missing。
// .umirc.ts
// eg
...
tailwindcss: {
tailwindCssFilePath?: '@/tailwind.css',
tailwindConfigFilePath?: 'tailwind-custom.config.js' // Default value: tailwindConfigFilePath || join(process.env.APP_ROOT || api.cwd, 'tailwind.config.js'),
},
...
This plugin do the following things to support tailwind in umi。
Add tailwindcss dependencies auto.
For 4.x: defauts to the latest version tailwindcss@latest
For 3.x: defauts to the compat version@tailwindcss/postcss7-compat, because of umi doesn't support postcss8 now)。
You can also install the specific version of tailwindcss. If tailwindcss exist in devDependencies, plugin will use it, otherwise plugin will use @tailwindcss/postcss7-compat。
Add Tailwind to your CSS。If tailwindCssFilePath setting exist, plugin will import this css file automatically. If not exist, will create a temporary file, and import it.
If tailwind.config.js not exist at tailwindConfigFilePath, it will create one。
Add postcss plugin in umi。
FAQs
umi@3.0 plugin for tailwindcss
The npm package umi-plugin-tailwindcss receives a total of 135 weekly downloads. As such, umi-plugin-tailwindcss popularity was classified as not popular.
We found that umi-plugin-tailwindcss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.