Using Material Web in HTML/Express.js #5264
Replies: 3 comments 2 replies
-
@material/web is a module package and require bundling, Unpkg only serve script as is, try esm.run by jsdelivr. <script type="module" src="https://esm.run/@material/[email protected]/all.js"></script> |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
See this answer: #5239 (comment) |
Beta Was this translation helpful? Give feedback.
-
How could I use Material Web in a plain HTML document or an Express.js app? I have tried UNPKG, but that did not seem to work properly. But then again, I don't really have any experience with UNPKG or projects like this, where you must include the components via JavaScript.
My apologies if this is an amateur question or cannot be done.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions