Jayanth Bala
Jayanth Bala

Reputation: 838

angular material is not recognized in firebase hosting

While serving in local host is working properly but when I deploy in the firebase hosting, angular materials is not recognized. displaying as plain html page

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

Upvotes: 0

Views: 82

Answers (1)

Manu Brunner
Manu Brunner

Reputation: 21

I had a similar problem. The styles of angular material were not displayed correctly when I wanted to deploy my app in firebase, but the animations worked. So I found this: What is purpose of the property "private" in package.json?

After I set "private: true" to "false" my styles were correctly displayed.

Upvotes: 2

Related Questions