
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
vue-cli-plugin-tailwind
Advanced tools
A plugin that adds Tailwind CSS to your vue-cli project.
Inside your vue-cli project folder add the plugin via:
vue add tailwind
Choose what Tailwind config you want to generate:
tailwind.config.js
file where you can define your customizations.tailwind.config.js
file containing the entire default configuration.See Tailwinds configuration guide for more info.
Tailwind CSS will be added as plugins in your PostCSS config.
// postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
If you use a name other than tailwind.config.js
for the Tailwind config file, you will need to specify it in your PostCSS configuration.
// postcss.config.js
module.exports = {
plugins: {
tailwindcss: 'custom-name.js',
//...
},
};
By default PurgeCSS will look for css selectors in your .html
files inside the ./public
directory and .vue
files inside the ./src
directory.
purge: {
content: ['./public/**/*.html', './src/**/*.vue']
},
Check https://tailwindcss.com/docs/optimizing-for-production for more info.
FAQs
vue-cli plugin for Tailwind CSS
The npm package vue-cli-plugin-tailwind receives a total of 5,879 weekly downloads. As such, vue-cli-plugin-tailwind popularity was classified as popular.
We found that vue-cli-plugin-tailwind 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.