
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-cli-plugin-meta
Advanced tools
Vue-cli plugin to add social media tags and other metadata to your project
Give your new Vue app some meta love
A Vue-cli plugin to add social media tags and other metadata to your project. Because while vue-cli 3.x lets you get started with a new project real quick, it will leave you with a rather 'barebones' index.html file. This plugin fixes that. By answering just a few questions about your project, you will benefit from:
:warning: Make sure you're working with vue-cli 3.x. Earlier versions do not support plugins such as this one:
vue --version
Create a new project if you haven't done so:
vue create my-new-app
Switch to your (new) project and add the plugin:
cd my-new-app
vue add meta
Well, that was the hard part. Now it's just a matter of answering a few prompts. Here's what vue-cli-plugin-meta will want to know.
If some of this data is shared across projects or you just prefer not to use the prompting system, you can always add some or all of it in the optional vue.config.js
file in the root of your project. Data found there will be shown as pre-filled when you're being prompted which means you can still change it at that point or just press enter to accept it as is.
vue.config.js
needs to export an object with the following structure and keys:
module.exports = {
pluginOptions: {
meta: {
projectName: 'My project',
url: 'https://example.com',
description: 'Lorem ipsum dolor sid amet',
twitterHandle: 'example',
socialImage: 'images/social.jpg',
googleAnalytics: 'UA-12345678-1'
}
}
}
Make sure to include the data in the same format as described above (e.g. no @ in front of the Twitter handle). Again, you can 'pre-fill' any number of prompts this way.
FAQs
Vue-cli plugin to add social media tags and other metadata to your project
The npm package vue-cli-plugin-meta receives a total of 0 weekly downloads. As such, vue-cli-plugin-meta popularity was classified as not popular.
We found that vue-cli-plugin-meta 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.