All Projects → Neveryu → prerender-website

Neveryu / prerender-website

Licence: MIT license
👋👋👋基于 Vue 的预渲染解决方案

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to prerender-website

vue-seo-friendly-spa-template
Vue.js PWA/SPA template initially scaffolded with vue-cli and configured for SEO. Makes use of prerendering and other techniques/packages in order to achieve a perfect "Lighthouse Score".
Stars: ✭ 41 (-10.87%)
Mutual labels:  prerender, vue-router
Vue Firebase Starter
boilerplate of vue/vuex/vue(x)-router, with sass/prerendering, muse-ui, and firebase/firebaseui
Stars: ✭ 43 (-6.52%)
Mutual labels:  prerender, vue-router
friendly-vue-starter
Full featured Vue.js starter project for browser apps
Stars: ✭ 37 (-19.57%)
Mutual labels:  vue-router
fd-vue-webapp
A Vue.js web application for Freedomotic Open IoT framework
Stars: ✭ 63 (+36.96%)
Mutual labels:  vue-router
tailmin
Tailmin - Admin dashboard built with Vue.js and Tailwind CSS
Stars: ✭ 39 (-15.22%)
Mutual labels:  vue-router
vue-boilerplate
Vue boilerplate
Stars: ✭ 28 (-39.13%)
Mutual labels:  vue-router
symfony4-vue
Symfony 4 skeleton with Vue, Vuex, Vue-router and Webpack
Stars: ✭ 16 (-65.22%)
Mutual labels:  vue-router
mmf-blog-vue2-pwa-ssr
mmf-blog-vue2 ssr(The service side rendering)
Stars: ✭ 65 (+41.3%)
Mutual labels:  vue-router
VueJs-Soft-UI-Dashboard
🍏 This is Soft UI Dashboard in Vue Js.
Stars: ✭ 61 (+32.61%)
Mutual labels:  vue-router
cloud-music-mobile
This is a music player
Stars: ✭ 22 (-52.17%)
Mutual labels:  vue-router
vue-multiple-tabs
vue-cli3 动态路由, 复用路由, 自动注入路由, 增删路由, 实战多tab页
Stars: ✭ 36 (-21.74%)
Mutual labels:  vue-router
order-service
一个基于vuejs,reactjs,nodejs,socket.io的服务系统
Stars: ✭ 22 (-52.17%)
Mutual labels:  vue-router
use-routes
🚩 A router hook for not only react hooks API but also fre
Stars: ✭ 35 (-23.91%)
Mutual labels:  vue-router
crisp-react
React boilerplate written in TypeScript with a variety of Jamstack and full stack deployments. Comes with SSR and without need to learn a framework. Helps to split a monolithic React app into multiple SPAs and avoid vendor lock-in.
Stars: ✭ 147 (+219.57%)
Mutual labels:  prerender
parcel-plugin-prerender
No description or website provided.
Stars: ✭ 42 (-8.7%)
Mutual labels:  prerender
Vue-NetEaseCloudMusic
vue,vuex ,vue-router,music
Stars: ✭ 95 (+106.52%)
Mutual labels:  vue-router
vue-jsPlumb
jsPlumb with Vue 2.【WIP】
Stars: ✭ 66 (+43.48%)
Mutual labels:  vue-router
vue-router-view-transition
Properly time out-in transitions with scrollBehavior
Stars: ✭ 38 (-17.39%)
Mutual labels:  vue-router
dva-vue
🌱 Vue and dva-core based
Stars: ✭ 34 (-26.09%)
Mutual labels:  vue-router
vux2.5-webapp
商城布局:Grid、Card、cell、panel、flexbox 省市区联动:x-address 状态切换:x-switch 弹出层:x-dialog 提示框:toast 选项卡:Tab 表单功能
Stars: ✭ 39 (-15.22%)
Mutual labels:  vue-router

A beautiful website with tour

Travis CI License donate

Vue.js 2.0 + vue-router + prerender-spa-plugin 3.x Prerender SPA Example

这里使用的是 prerender-spa-plugin stable 3.x 版本,基于 puppeteer。 如果你使用的 2.x 版本,则是基于 PhantomJS

重要提示: 如果你在 npm install 时一直没有没有等到成功的结果,你可以尝试删除掉 package-lock.jsonnode_modules 再尝试;如果还是不行,你可以选择尝试删除掉 package-lock.jsonnode_modules 后,使用 npm install --registry=https://registry.npm.taobao.org 来安装。(究其原因,我在 web-bookmarks 中有提到:npm 与 cnpm 要点

Demonstrates usage of Vuejs 2.0 with Vue Router and Webpack 3. Build will generate 6 static routes at the following paths:

  • /
  • /home
  • /information
  • /ticket
  • /scenery
  • /about

Build

npm install
npm run build

重要提示: 如果你在 npm install 时一直没有没有等到成功的结果,你可以尝试删除掉 package-lock.jsonnode_modules 再尝试;如果还是不行,你可以选择尝试删除掉 package-lock.jsonnode_modules 后,使用 npm install --registry=https://registry.npm.taobao.org 来安装。(究其原因,我在 web-bookmarks 中有提到:npm 与 cnpm 要点

Now check the new dist directory for your prerendered static files!

To view the rendered files, you can

npm run prod

Now visit the following routes in your browser (note the trailing slash):

Development

To edit the prerender-spa-plugin configuration, look for new PrerenderSPAPlugin in the plugins section of webpack.config.js.

If you're using a router or have more than one page to prerender, edit the routes array under that config object.

npm install
npm run dev

重要提示: 如果你在 npm install 时一直没有没有等到成功的结果,你可以尝试删除掉 package-lock.jsonnode_modules 再尝试;如果还是不行,你可以选择尝试删除掉 package-lock.jsonnode_modules 后,使用 npm install --registry=https://registry.npm.taobao.org 来安装。(究其原因,我在 web-bookmarks 中有提到:npm 与 cnpm 要点

Tip

  • 1.1 在开发过程中(npm run dev),vue-router 请务必使用 history 模式。
  • 2.1 如果你的项目是部署在根目录下的话,那么你可以直接打包(npm run build) ,然后进行部署。
  • 2.2 如果你的项目要部署在子目录下的话,那么你可能要注意了,这个时候你的 vue-router 不应该使用 history 模式,与此同时,publicPath 也应修改为 ./

Note

在写这个项目的时候也记录了几个知识点:关于本项目中的知识点

Communication

欢迎加入 QQ 群,共同学习讨论,QQ 群:685486827一键加群

vue-music

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].