【问题标题】:angular material is not recognized in firebase hostingFirebase托管中无法识别角度材料
【发布时间】:2021-04-19 04:08:28
【问题描述】:

虽然在本地主机中服务正常工作,但当我在 Firebase 主机中部署时,无法识别角度材料。 显示为纯 html 页面

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

【问题讨论】:

    标签: angular firebase firebase-hosting


    【解决方案1】:

    我遇到了类似的问题。当我想在 Firebase 中部署我的应用程序时,角度材质的样式显示不正确,但动画有效。所以我发现了这个: What is purpose of the property "private" in package.json?

    将“private: true”设置为“false”后,我的样式正确显示。

    【讨论】:

      猜你喜欢
      • 2018-03-29
      • 2018-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-23
      • 2019-03-29
      • 2020-02-02
      • 2020-04-26
      相关资源
      最近更新 更多