Build with --prod gives error on plugin

I have developed an app for iOs and Android that uses the BLE plugin: ‘cordova-plugin-ble-central’.
When I build the android app with ionic build android it works, when I run (without changing anything in the code) with ionic build android --prod, then I receive the error that the BLE plugin is not installed:
“Install the BLE plugin: ‘ionic plugin add cordova-plugin-ble-central’”

Is there something that I need to do extra for making it work with --prod?