- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
how can i add the performance tweak on cordova cli ?
i'm talking about the lines
<preference name="CrosswalkAnimatable" value="false" />
<preference name="debuggable" value="false" />
<intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />
<intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />
<preference name="CrosswalkAnimatable" value="false" />
in the intel xdk i was adding it in the config.xml and additions.xml
so how and where can i add them to cordova cli ?
thank you
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you add those lines to the "intelxdk.config.additions.xml" file they will be translated (where necessary) and included in the exported config.xml file that is created using the "Cordova Build Package" tool on the Build tab. If you look inside that exported config.xml file you will see the net result of any translation.
In your example, the two "xwalk-command-line" preferences will be translated into:
<preference name="xwalkCommandLine" value="--ignore-gpu-blacklist --disable-pull-to-refresh-effect "/>
and the other lines should just pass through, since they are already on standard Cordova config.xml format.
Of course, if you have exported your project into Cordova CLI and are no longer using the XDK to configure your project you'll have to do this by hand, by directly editing the config.xml file inside your Cordova CLI project. You can always use the XDK export feature to see what happens to a config.xml file when you make changes to your XDK project settings.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page