MikeMitterer / dart-material-design-lite

Material Design Lite Components, Directives + SPA with HTML, CSS + Dart
http://www.material-design-lite.pub/
Other
228 stars 26 forks source link

404 errors if I use themes from rawgit #16

Open kasperpeulen opened 9 years ago

kasperpeulen commented 9 years ago

I get the following errors if I add a theme from rawgit: <link id="theme" rel="stylesheet" href="https://cdn.rawgit.com/MikeMitterer/dart-mdl-theme/master/<theme-name>/material.min.css">

GET http://localhost:63345/packages/mdl/assets/fonts/roboto/Roboto-Medium.woff2 404 (Not Found)
GET http://localhost:63345/packages/mdl/assets/fonts/roboto/Roboto-Medium.woff 404 (Not Found)
GET http://localhost:63345/packages/mdl/assets/fonts/roboto/Roboto-Medium.ttf 404 (Not Found)
GET http://localhost:63345/packages/mdl/assets/fonts/roboto/Roboto-Bold.woff2 404 (Not Found)
GET http://localhost:63345/packages/mdl/assets/fonts/roboto/Roboto-Bold.woff 404 (Not Found)
GET http://localhost:63345/packages/mdl/assets/fonts/roboto/Roboto-Bold.ttf 404 (Not Found)

If I add the stylesheet like this: <link rel="stylesheet" href="packages/mdl/assets/styles/material.min.css">

I don't get those errors.

MikeMitterer commented 9 years ago

I know... that's a bit a problem. It's a path-problem in SCSS. Usually it should work but in some cases it won't find the way to the fonts - maybe I'll remove this "feature" in one of the next releases.