These are chat archives for chandu0101/scalajs-react-components

Jun 2016
Alexander Weickmann
Jun 29 2016 21:39

hi together. i am using the Material UI components. I wonder if there is a way to import only those SVG icons that I actually use in order to minimize the amount of data that needs to be transferred to the client. currently, after a production minimized build, running in gzipped server mode, the material-ui bundle is my largest file with 199 KB. Without the SVG icons it was substantally less, below 50kb if I remember correctly

I am importing as demonstrated in the demo:

window.mui.SvgIcons = require('material-ui/lib/svg-icons/index');