在Firebase托管中使用vue-router部署Quasar(VueJS)

时间:2018-05-30 07:42:23

标签: firebase vue.js vue-router firebase-hosting quasar-framework

enter image description here

我在我的网页上有这个观点。它说,它已成功部署,但它没有显示我的SPA。

配置

 "hosting": {
    "public": "dist/spa-mat",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]

我使用默认的 router.js 设置

 {
    path: '/',
    component: () => import('layouts/default'),
    children: [
      { path: '', component: () => import('pages/index') }
    ]
  }

采取的措施

(firebase already installed an im already logged in)
1. quasar build - to build quasar app for prod
2. firebase init
           - `dist/spa-mat` as directory 
3. firebase deploy

任何Quasar dev谁知道如何在Firebase托管中部署?我认为我做的一切都正确,但我的SPA没有显示。

1 个答案:

答案 0 :(得分:0)

按照Deployment of SPA in Quasar的官方文档进行操作。有一个指南,如何在Heroko,Now等部署。

如果你做得对,请给它几分钟到一个小时。