-
Notifications
You must be signed in to change notification settings - Fork 84
decrease size of the bundles #155
Comments
Okay, this is a bit of a problem with our setup. |
i to tryed it in the my hosting. same result. |
importing wrapper MaterialApp gived 150kb css bundle. |
|
@romanown I've made a change which should cut out some amount of css helpers and thereby removing a lot of bloat. |
thank You. help me please to decrease size to use only used components. i am to wait. |
how a long time it may be? |
I just asked @TheComputerM, he will update it tomorrow. For now, you could try this. |
thank You and thank @TheComputerM very match. |
@TheComputerM only this works and I think that's bad: |
indeed tree shaking (reduced bundle size) only works if used like this: Any plan/timeline to support tree-shaking work like this?
or
Thanks. |
can also use |
For me this: doesn't work. It pulls also many components that are not used by our app (Tabs etc). It's not tree-shaking at all. Unfortunately, the only way to pull components one by one (A la carte or tree-shaking) is via this pattern:
|
when i import any component from root example
import { Button } from "svelte-materialify";
increased size of the bundles (js and css). +200kb css and 30kb js. how i can decrease its size? when i usedimport Button from "svelte-materialify/src/components/Button";
size is fine but work is wrong. useimport MaterialApp from "svelte-materialify/src/components/MaterialApp";
to wrap my app is wrong.REPL
https://svelte.dev/repl/7cefe135751c4b089be75713c869b53c?version=3.35.0
The text was updated successfully, but these errors were encountered: