Material-ui: UMD for icons

Created on 14 Apr 2020  Â·  2Comments  Â·  Source: mui-org/material-ui

the @material-ui/core has a UMD support which I could use it like this:

<script src="https://unpkg.zhimg.com/@material-ui/[email protected]/umd/material-ui.development.js"  crossorigin="anonymous"></script>
const {
    makeStyles,

    AppBar,
    Toolbar,
    Typography,
    Button,
    IconButton,
} = MaterialUI

but @material-ui/icons doesn't, so how can we use it like this way?(Without using NodeJS)

wontfix

Most helpful comment

@sky5454 The UMD export is only meant for quick and dirty tests. You can already use Font icons for this case. Implementing such a feature would mean significantly increase the size of the package, https://packagephobia.now.sh/result?p=@material-ui/icons, which is already large and can sometimes create yarn/npm timeouts.

All 2 comments

@sky5454 The UMD export is only meant for quick and dirty tests. You can already use Font icons for this case. Implementing such a feature would mean significantly increase the size of the package, https://packagephobia.now.sh/result?p=@material-ui/icons, which is already large and can sometimes create yarn/npm timeouts.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pola88 picture pola88  Â·  3Comments

sys13 picture sys13  Â·  3Comments

revskill10 picture revskill10  Â·  3Comments

FranBran picture FranBran  Â·  3Comments

iamzhouyi picture iamzhouyi  Â·  3Comments