Just use parts of the framework
-
Hi,
I’ve come across Onsen and it looks really nice. I’m currently working on a hybrid app and have a question: Do I have to use the entire framework or can I just take the parts of the framework that I’m gonna use in my app?
Ex. if I’m just interested in buttons and navigation, would it then be possible to take these parts of the css?
Thanks in advance
Martin
-
Hi Martin,
If you’re using ES modules you can just import the components that you need. Take a look here to see how to do that: https://onsen.io/v2/guide/appsize.html#reducing-app-size
-
hi @emccorson, thanks a lot, much appreciate your help.