40818419 / Vue Router Sitemap
Generate sitemap.xml by vue-router configuration
Stars: ✭ 102
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Vue Router Sitemap
Vue Memo
Using Vue.js for memo web App. webpack, vuex, vue-router, Firebase.
Stars: ✭ 88 (-13.73%)
Mutual labels: vue-router
Xyy Vue
🎨基于vue+vue-router+vuex+axios+webpack开发的个人Demo《Qu约》
Stars: ✭ 1,316 (+1190.2%)
Mutual labels: vue-router
Running Time
Sample Single Page Application using Laravel & Vue.js + Vuex + Vue-Router
Stars: ✭ 90 (-11.76%)
Mutual labels: vue-router
Vue Music163
A webapp what base Vue2.0 contains seaching and playing music
Stars: ✭ 91 (-10.78%)
Mutual labels: vue-router
Vue Typescript Music
🔥 基于 vue 全家桶 音乐项目(Music project) vue+typescript 实现 高仿 网易云音乐 移动端WebApp
Stars: ✭ 94 (-7.84%)
Mutual labels: vue-router
Vue Router Storage
A vue router storage solution. -If your vue application needs to jump to a third party page, and then jump back, want to restore to the original history and continue to operate, the use of this plug-in is the best solution.如果你的vue应用需要跳转到第三方页面,再跳转回来时,想恢复到原来的历史记录并继续操作,使用本插件是最好的解决方案。
Stars: ✭ 87 (-14.71%)
Mutual labels: vue-router
Vuejs 2 Na Pratica
Curso totalmente prático de Vue.js da Webschool
Stars: ✭ 101 (-0.98%)
Mutual labels: vue-router
Vue Mpc
multiple pages (multiple entries) based on vue-cli3.x(基于vue-cli3.x创建的多页面应用,每个页面入口又可以创建自己的vue-router)
Stars: ✭ 97 (-4.9%)
Mutual labels: vue-router
Ohmo Vue
这是一个完全由 Vue 全家桶来实现的轻博客应用,应用了Vuex对所有状态数据进行管理并优化整体结构,后端应用Node.js开发的全栈应用,由LeanCloud提供数据存储服务。
Stars: ✭ 90 (-11.76%)
Mutual labels: vue-router
Egg Vue Webpack Boilerplate
Egg Vue Server Side Render (SSR) / Client Side Render (CSR)
Stars: ✭ 1,302 (+1176.47%)
Mutual labels: vue-router
Vue Boilerplate
Vue 2.0 boilerplate,based on webpack and es6,includes vuex,vue-router,vue-resource, vuelidate
Stars: ✭ 94 (-7.84%)
Mutual labels: vue-router
Laravel Seo Tools
Laravel Seo package for Content writer/admin/web master who do not know programming but want to edit/update SEO tags from dashboard
Stars: ✭ 99 (-2.94%)
Mutual labels: sitemap
Vuejs Wordpress Theme Starter
A WordPress theme with the guts ripped out and replaced with Vue.
Stars: ✭ 1,359 (+1232.35%)
Mutual labels: vue-router
Laravel Sitemap
Create and generate sitemaps with ease
Stars: ✭ 1,325 (+1199.02%)
Mutual labels: sitemap
vue-router-sitemap
Generate sitemap.xml by vue-router configuration
Install
npm i --save vue-router-sitemap
Example usage
// router.js
import VueRouter from 'vue-router';
export const router: VueRouter = new VueRouter(
{
routes: [
{
path: '/',
name: 'index',
component: Index,
},
],
},
);
// sitemapMiddleware.js
import VueRouterSitemap from 'vue-router-sitemap';
import path from 'path';
import { router } from 'router';
...
export const sitemapMiddleware = () => {
return (req, res) => {
res.set('Content-Type', 'application/xml');
const staticSitemap = path.resolve('dist/static', 'sitemap.xml');
const filterConfig = {
isValid: false,
rules: [
/\/example-page/,
/\*/,
],
};
new VueRouterSitemap(router).filterPaths(filterConfig).build('http://example.com').save(staticSitemap);
return res.sendFile(staticSitemap);
};
};
app.get('/sitemap.xml', sitemapMiddleware());
...
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].