Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
5.1.1
-
None
-
None
Description
Steps to reproduce:
- Create hooks/before_build/010_test.js. Have it simply output some text to the console.
- Do:
cordova build <platform>
The expected text is present.
- Do:
cordova run <platform>
My expectation is that the text would be outputted, since "run" is more or less a wrapper around "prepare," "build," and some other commands. However, the text is not outputted.
Workaround:
- Do:
cordova build <platform>
The hook runs, and the app is built.
- Do:
cordova run <platform> --nobuild
The app built in the previous step is deployed to the phone/emulator.