I am encountering an issue with the angular2-seed application. It seems unable to render my css
when I place it in the index.html
.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%= APP_BASE %>">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><%= APP_TITLE %></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- inject:css -->
<link rel="stylesheet" href="css/material.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- endinject -->
</head>
<body>
<div class="mdl-badge">Hello</div>
<sd-app>
<div class="mdl-spinner"></div>
</sd-app>
I have checked that I am referencing the correct path for the css
file, but still the classes are not rendering. Even when I tried using
<link rel="stylesheet" href="../../node_modules/material-design-lite/material.css">
, I encountered the same issue.Edit
This is how my project setup looks like now. I have moved the css
and js
files to the src
folder for better clarity. Image reference: https://i.stack.imgur.com/8UMU8.png
Your assistance on this matter would be greatly appreciated.