🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-htmlize

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-htmlize

Make working OG Tags and SEO in pure Vue projects.

1.0.3
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

vue-htmlize

Make working OG Tags and SEO in pure Vue projects. Improve your SEO in SPA apps!

Get started

Install

  npm i vue-htmlize

Config in vue

In main.ts or main.js just import vue-htmlize

  import App from './App.vue'
  import router from './router'

  import htmlize from 'vue-htmlize' // import it
  htmlize.byRouter(router) // generate htmls by router

  const app = createApp(App)
  app.use(router)
  app.mount('#app')

Options

Few options to setup it for your project

  // deletes unused files in public dir [ default : false ]
  htmlize.config.clean = true

  // files excluded from deletion [ default : '.htaccess', 'favicon.ico' ]
  htmlize.config.ignore = [ '.htaccess', 'favicon.ico', 'img' ]

  // directory for public files [ default: 'public']
  htmlize.config.dist = "public"

  // html template file to set global options (fonts, css) [ default: "index.html" ]
  htmlize.config.template = "index.html"

Contributing

Feel free to contribute at GitHub

Keywords

vue

FAQs

Package last updated on 15 Dec 2022

Did you know?

Socket

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.

Install

Related posts