title: Cordova hook and access to build settings
body: <p>During a hook for Cordova
  on for example <strong>before_build/before_prepare</strong>:</p>
  
  <pre><code>cordova build
  -&gt; before prepare hook
  -&gt; prepare
  -&gt; after prepare hook
  -&gt; before build hook
  -&gt; build
  -&gt; after build hook
  </code></pre>
  
  <p>Is it possible to obtain settings about the build? If it's a release build or a development build, if the current platform is 'ios' or 'android' or anything else for that matter.</p>
  
  <p>Is this at all possible?</p>