How exclude native extension? (SOLVED)

I want to remove defos ne from html build.(i use it only in desktop for debug).
I add it to exlude libs in manifest.But size of my application not changed.
I am doing something wrong? How can i remove it?

 wasm-web:
        context:
            excludeLibs: ["defos","physics","LinearMath","BulletDynamics","BulletCollision","Box2D","record","vpx"]
            excludeJsLibs: []
            excludeSymbols: []
            libs: ["physics_null","record_null"]
            linkFlags: []

Have you measured the size with and without DefOS on HTML5? It should hardly add anything to the size at all.

Yes, I check HTML. I make copy of defos, and remove HTML by hand.
It remove about 10kb=)

Really?! I would actually have expected less. Hmm, let’s check with @JCash if it’s possible to use an app manifest to exclude a native extension for a specific platform.

1 Like

No, you can’t use the app manifest to remove an extension that you added yourself. One solution would be for you to not have DefOS in your game.project file and instead use bob.jar and the --settings option to add DefoS when building and bundling specifically for HML5:

1 Like

Thanks.
I need have defos in game.project because i use it when build from editor.
can i by --settings remove game.project params?

Also having copy of defos without html is much simple=)

Yes, you replace any previous setting.

1 Like