FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 82 Ask New Question


I am getting started with Material Components for the Web (MDC-Web), In the documentation i see examples with NPM, But i am actually looking for a CDN to get started. Is Material Components for the Web (MDC-Web) available through any CDN?

On By


1 Answer


Currently MDC-Web is not officially available on CDN (Like its predecessor MDL), But you can find the 3rd party CDNs for MDC-Web like unpkg.com CDN.
Following are the links for css, js files on unpkg.com

https://unpkg.com/[email protected]/dist/material-components-web.min.css
https://unpkg.com/[email protected]/dist/material-components-web.min.js

Your html code looks like following with the above CDN links

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/material-components-web.min.css">
<script src="https://unpkg.com/[email protected]/dist/material-components-web.min.js"></script>
On By


Answer This Question


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News