Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Giving native look to a meteor/cordova app with css, conditioning it to the platform build

I am developing an hybrid mobile app with Meteor and Cordova, and in order to have a native look I want to use two different stylesheets: Bootstrap material design for android and Ratchet for IOS.

What is the simplest way to conditionally include the respective css and javascript files? i.e. the command:

 meteor run ios

should generate an app with the ios css, while:

 meteor run android

should generate the app with android css.

If there is no simple way, is the Meteor team working on this issue?

like image 771
Federico Squartini Avatar asked Nov 08 '22 20:11

Federico Squartini


1 Answers

This is what the merges-folder is for. Take a look at the documentation. Just search for Using merges to Customize Each Platform...

like image 171
Phonolog Avatar answered Nov 15 '22 06:11

Phonolog